From: gorman AT gpu DOT srv DOT ualberta DOT ca (Gorman) Newsgroups: comp.os.msdos.djgpp Subject: How do you compile an .s file? Date: Tue, 05 Nov 1996 00:53:18 GMT Organization: Nowhere Lines: 36 Message-ID: <55lvdd$brm@pulp.ucs.ualberta.ca> Reply-To: gorman AT gpu DOT srv DOT ualberta DOT ca NNTP-Posting-Host: async3-15.remote.ualberta.ca DJ-Gateway: from newsgroup comp.os.msdos.djgpp Apparently-To: djgpp AT delorie DOT com I have tried many different ways, but when I compile this code: // begin code .text #define MY_FUNCTION(x) .globl _My_Function##x .align 4 ; \ _My_Function##x ; \ pushw %ds ; \ pushw %es ; \ pushw %fs ; \ // etc. etc. etc. popw %fs ;\ popw %es ;\ popw %ds ;\ iret MY_FUNCTION(1); //end code when I type: gcc -I. -Isrc -Wall -o MyFunc.o -c MyFunc.s I get all these error messages saying that there are no such operands and that the 'Rest of the Line is Ignored...First character ignored was '\'". How the heck does AS work????????????????? Can anyone help me compile this assembler?? Gorman PS. If anyone has a TUTORIAL about how to use DJGPP to compile both C++ and assembler and linking, it'd be GREAT!!!!