You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Only registered members may post questions, contact other members or search our database of over 8 million posts.

I recently decided to progress in C, as asm-code becomes too unreadable too soon...
I tried it with ADS 2.2.. It compiles, alright, but somehow I can't get the hang of it... How can I tell it to use my own base address (and not 0x0)? And how can I get the code out of this ELF-Binaries it produces? (And I don't want it to use any (.data...) segments beside the code-segment!)

Can somebody give me some hints or point out some (important) settings for me I have overlooked?
(I have in mind the x65 series with ARM926EJ-S (and I've set this). Further I've set ARM/Thumb Interworking and turned all options what to include in the .o binary off.
For linking, I tried "Simple" setting with RO-Base as 0x0800xxx my wanted base address (is that the right option to set?!) )

I am thankful for any hint how to use this (or the gcc) compiler properly for the ARM926EJ-S...

Thanks in advance
KKaul

PS: Even some russian links would help me atm...

Edit: I finally found "fromelf" that seems to do something like code-extraction from elf-binaries... So I've compiled miniGPS and compared with the bytecode I had... There's something going wrong.. its code is much longer (a0c bytes to 6f3), it does not use some instructions (although the cpu-type ist set to ARM926EJ-S..) and it uses some data-segments!
So I am doing something wrong....