Command to obtain diagnostic information

I am wondering if there is some command or function that I can call that will return some information about the arduino that I am using. I would like to be able to obtain some diagnostic information about the device (available memory, type of arduino, etc) without having to hardcode it in everytime I change devices.

Is anything like this possible? Any device specific information would be good.

Is anything like this possible?

Not yet. Let us know when you get it done.

I am wondering if there is some command or function that I can call that will return some information about the arduino that I am using.

Call from where?

available memory

http://playground.arduino.cc/Code/AvailableMemory

type of arduino

The compiler knows this, because you told it. You can create a function used on all Arduino types that prints a different string based on the compile-time info you supplied.

Try looking in http://www.visualmicro.com/.

They have a code debuugger that works with the Arduino. I tried a beta version and it seemed to work ok, but have not really pushed the product in any real sense.