Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
ARM Instructions Viewer
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
2901 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
ARM Instructions Viewer
Jolie Eid
over 12 years ago
Note: This was originally posted on 26th October 2010 at
http://forums.arm.com
Hello
I was wondering what software program can help me translate a C/C++ code program to the corresponding set of ARM instructions. I DO care about browsing the ARM instructions.
Does RVDS4.1 serve this purpose, or it doesn't enable viewing the instructions? and any idea about the unsupported features of RVDS 4.1 evaluation product?
Thanks in advance
Jolie
Parents
Martin Weidmann
over 12 years ago
Note: This was originally posted on 27th October 2010 at
http://forums.arm.com
When you compile C/C++ files you can tell the compiler to generate an assembler listing as well as an object. Just add "--asm" to the command. For example:
armcc --debug --cpu=ARM926EJ-S -O2 -c --asm my_code.c
Assuming no compile errors, you see my_code.o and my_code.s generated. The my_code.s file has the assembler listing.
You can do pretty much the same thing post compile, or for a complete image, using the fromelf tool. Just run:
fromelf -c my_object.o/my_image.axf
The output gets dumped to the console, so you probably want to re-direct it the a file.
The main difference between the two approaches is the output format. The file generated by the compiler (something.s) can be run through the assembler (armasm) to generate an object. The output of fromelf cannot.
Cancel
Vote up
0
Vote down
Cancel
Reply
Martin Weidmann
over 12 years ago
Note: This was originally posted on 27th October 2010 at
http://forums.arm.com
When you compile C/C++ files you can tell the compiler to generate an assembler listing as well as an object. Just add "--asm" to the command. For example:
armcc --debug --cpu=ARM926EJ-S -O2 -c --asm my_code.c
Assuming no compile errors, you see my_code.o and my_code.s generated. The my_code.s file has the assembler listing.
You can do pretty much the same thing post compile, or for a complete image, using the fromelf tool. Just run:
fromelf -c my_object.o/my_image.axf
The output gets dumped to the console, so you probably want to re-direct it the a file.
The main difference between the two approaches is the output format. The file generated by the compiler (something.s) can be run through the assembler (armasm) to generate an object. The output of fromelf cannot.
Cancel
Vote up
0
Vote down
Cancel
Children
No data