5 Replies - 4882 Views - Last Post: 05 January 2010 - 08:02 PM

#1 Zacki  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 27-December 09

Converter from C code or Java code to Assembler

Posted 29 December 2009 - 09:39 AM

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
Is This A Good Question/Topic? 0
  • +

Replies To: Converter from C code or Java code to Assembler

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

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)
Was This Post Helpful? 0
  • +
  • -

#3 aab19902  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 04-January 10

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.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5364
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

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.
Was This Post Helpful? 0
  • +
  • -

#5 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

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.
Was This Post Helpful? 0
  • +
  • -

#6 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1