Mixing C/C++ and Assembly Language in same program [message #1749714] |
Fri, 09 December 2016 19:00  |
Eclipse User |
|
|
|
The project I need to complete involves combing C/C++ and Assembly Languages in the same program. I want to write most of it in C but then call functions which are written in assembly. I'm using the MinGW GCC toolchain. I'm only a sophomore so I understand the actual coding aspect and not much of these errors I keep getting when trying to link them. I'm looking for a step by step guide of just a simple project for me to follow, or with every error I get I will add to this thread. Thanks for any help.
|
|
|
Re: Mixing C/C++ and Assembly Language in same program [message #1749814 is a reply to message #1749714] |
Mon, 12 December 2016 13:01  |
Eclipse User |
|
|
|
Hi Justin,
I am not clear if your problem is an Eclipse C/C++ IDE question or a using GCC. If it is the former, hopefully we can help, but a GCC forum would be more appropriate on how to write GCC compliant code.
For writing assembly in Eclipse, just add your assembly files into the project. If you want to do inline assembly, check out the GCC manual: https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html
Finally, if you are looking for info about x86-64 instruction sets, I recommend a search around the web, particularly Intel and AMD should have some good resources.
Jonah
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds