Search code examples
c8051

How to convert a c program to 8051 microcontroller assembly code


I looked through several sites ,but, I am not able to find a suitable answer. It seems really hard to convert my c programme to assembly code...


Solution

  • With GCC you can generate assembly code with the -S flag.

    Example:

    gcc -S hw.c

    I have try it in some small program but don't know hot that will do with large programs.