From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Assembling question..... HELP NEEDED! Date: Tue, 19 Nov 1996 19:43:14 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 34 Message-ID: <32927E52.511C@cs.com> References: <56tc71$e2h AT dinkel DOT civ DOT utwente DOT nl> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp103.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: boerma AT cs DOT utwente DOT nl, j DOT r DOT brouwer AT student DOT utwente DOT nl To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp boerma AT cs DOT utwente DOT nl wrote: > > I have been having an argument with my DJGPP compiler all day, am > getting pretty desparate. How do I get a make file to automatically > assemble a preprocessed .S file. The trouble i have is that DOS > doesn't know the difference between a .s (preprocessed) and a .S > (to-be-preprossed) file. I tried cheeting by changing the original .S > extension into .asm and preprocessing this file with the command: > GCC -E -xassembler-with-cpp something.asm -o something.s > After this "as -o something.o somthing.s" starts yelling at me that > somthing.s doesn't contain any Intel assembly instructions it > recognizes. By the way, GCC under Linux does preprocess and assemble > this file correctly. Just tell gcc to use a .S extension - it doesn't matter what the real filename is. For example: gcc ... file.S is treated differently than gcc ... file.s regardless of the real case of the filename. Read the gcc docs that come with DJGPP for more info; the place to look is in "Invoking GCC|Overall Options". -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | * Proud user of DJGPP! * | http://www.cs.com/fighteer | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | ---------------------------------------------------------------------