Friday, July 31, 2009

Can we write coding for microcontroller(ATMEGA32) using both assembly and in C language simultaneously in AVR?

is there any other software which can have both coding in assembly and c within same program??

Can we write coding for microcontroller(ATMEGA32) using both assembly and in C language simultaneously in AVR?
Yeah, every compiler I've ever used for embedded development allowed you to inject assembly in the C code. I do believe there is usually a set of preprocessor commands you have to use to designate where you are using assembly.





Also, you must remember that when you compile a C/C++ program, it is effectively converting it to assembly/machine code, so it shouldn't be a surprise that being allowed to mix the two is a pretty common feature.
Reply:most c++ compilers can. you have to know how to write them together of course.


No comments:

Post a Comment