I am looking for a converter from C or Java code to Assembler code, so if there is someone that has that kind of program i will be grateful.
Thanks
Converter from C code or Java code to Assembler
Page 1 of 15 Replies - 3009 Views - Last Post: 05 January 2010 - 08:02 PM
Replies To: Converter from C code or Java code to Assembler
#2
Re: Converter from C code or Java code to Assembler
Posted 29 December 2009 - 10:08 AM
This has nothing to do with C/C++ really so I'm moving this to the Corner Cubical.
I will say that I'm not sure if anything like that even exists, did you try searching Google/Bing (as it would be a pretty obscure thing if it did exist)
I will say that I'm not sure if anything like that even exists, did you try searching Google/Bing (as it would be a pretty obscure thing if it did exist)
#3
Re: Converter from C code or Java code to Assembler
Posted 04 January 2010 - 11:46 PM
What assembly code are you trying to convert to using? I know for sure you can get C into Sparc assembly code.
It is not exactly nice looking, but with a few minutes of examination you can figure it out.
It is not exactly nice looking, but with a few minutes of examination you can figure it out.
#4
Re: Converter from C code or Java code to Assembler
Posted 04 January 2010 - 11:57 PM
Most C compilers will have an option to compile to assembly code.
#5
Re: Converter from C code or Java code to Assembler
Posted 05 January 2010 - 10:23 AM
For example using microsoft's compiler:
cl.exe myprog.c /c /EHsc /Famyprog.asm
Or on borlands compiler:
bcc32 -S -c myprog.c
or on MinGW:
CC -S -o myprog.asm where CC is the name of the compiler (can't put that in a post for some reason).
AS for Java -- Java runs on a VM, so you can use a Java disassembler to look at the VM opcodes in mnemonic form... This is not a good deal of help unless you are doing something like language development though.
cl.exe myprog.c /c /EHsc /Famyprog.asm
Or on borlands compiler:
bcc32 -S -c myprog.c
or on MinGW:
CC -S -o myprog.asm where CC is the name of the compiler (can't put that in a post for some reason).
AS for Java -- Java runs on a VM, so you can use a Java disassembler to look at the VM opcodes in mnemonic form... This is not a good deal of help unless you are doing something like language development though.
#6
Re: Converter from C code or Java code to Assembler
Posted 05 January 2010 - 08:02 PM
The GCC Java compiler can produce assembly code from Java programs.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|