Archived

This topic is now archived and is closed to further replies.

Daishim

Linking Assembly and C/C++

Recommended Posts

Daishim    244
I''ve asked this question before but never got a straight answer. I''ve read books about C/C++ and assembly but they just say link this assembly file with this C/C++ file... how? It''s pure 16bit dos coding, I have MSVC++, Turbo C++, MASM32, and DJGPP. Can anyone give me explicit instructions on merging Assembly and C/C++ with any one of these compilers? Thanks in advance.

Share this post


Link to post
Share on other sites
Julio    116
some of the compilers you listed have built in asm. you''d just have to figure out the syntax. like ''__asm'', or just ''asm''. If you want to externaly link an asm module to your project, then you do just that. in vc++ you go to project->Setting->Link and type in the name of the .obj file that was created from your assembler. make sure that the obj file is in the path of where your compiler can find it.

HHSDrum@yahoo.com
Polarisoft Home Page

Share this post


Link to post
Share on other sites