Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7650 Discussions

Is there a way to obtain NASM code from a C-like language?

Andrew_F_
Beginner
112 Views

I need to implement an optimized Algorithm in NASM, unfortunately is a bit difficult for me since I'm new to its syntax. So I'm looking for a way to translate a C program in NASM.

Any tool or suggestion to help me?

 

Thanks

0 Kudos
3 Replies
Bernard
Black Belt
112 Views

The only method I suppose is to look at C program disassembly and try to translate it manually to NASM syntax.

Kittur_G_Intel
Employee
112 Views

Yes, there's no other way know of other than deciphering the c assembly and convert to nasm accordingly....

Regards, Kittur

Bernard
Black Belt
112 Views

For simple programs or  functions it is quite beneficial for understanding the assembly implementation.

Reply