flat assembler
Message board for the users of flat assembler.

Index > Heap > Translate Assembler to C ?

Author
Thread Post new topic Reply to topic
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
Translate Assembler to C
Convert your assembly-language code base to C using Relogix

i saw this in a google ad,

my question whould be:
why whould someone want to translate a hardcoded assembly code to c?

i whould think the opposite thing:
Translate C to Assembler (not raw mode, but optimized instead)
Post 29 Jul 2005, 09:52
View user's profile Send private message Visit poster's website Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
I think it's useful when you lost your C code, and all you have is binary. You can disassemble it then, use such a tool and have at least a bit of old sourcecode.
Post 29 Jul 2005, 10:24
View user's profile Send private message Visit poster's website Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
Yes, but the result will not be much better. Translating
Code:
add [ds:4A8C9B5D], 3
    

to
Code:
variablea = variablea + 3
    

Is not very helpful. If you stored debugging info. with it, maybe, but it is better merely to make backups of the original source code. Besides, converting assembly to C will probably have some mistakes and also be a "rough" translation, meaning that if you compile the C code it won't compile to exactly the same as the original assembly, and will probably be slower and/or bigger, etc.
Post 01 Aug 2005, 16:48
View user's profile Send private message AIM Address Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.