Sizes/Limits of Integers etc. in Simulator.

D.Venkatasubramanian, Noida dvenkat@noida.hcltech.com
Sun Dec 22 21:46:00 GMT 2002


Hi All,

While making changes/additions to the H8 Simulator, 
I ran up into a problem, when running the cross-compiler, 
h8300-elf-gcc with just the -mh option, the sizeof (int) is 
2 bytes, whereas, the sizeof (pointer) is 4 bytes. The same 
target h8300h when used with a mint32 option, produces a 
4 byte int. In the simulator, I would like to perform certain 
tasks, based on the sizeof (int), of the binary. That is, I 
have a binary compiled for h8300-elf target with -mh option only. 
When GDB/ Simulator loads a binary, it must hold these sizes/ limits
somewhere, could you point me, where and how could I access these, in 
the simulator code.

Any help would be very useful. I could give you more specific details 
if required.

Thanks and Regards,

Venky



More information about the Gdb mailing list