From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Com Files Date: Thu, 11 Jan 2001 01:23:57 -0500 Lines: 47 Message-ID: <93jjgc$ak5rp$1@ID-57378.news.dfncis.de> References: <3a59e424$1 AT news DOT telinco DOT net> <93jgj4$7j6$3 AT ctb-nnrp2 DOT saix DOT net> NNTP-Posting-Host: ip114.rochester6.ny.pub-ip.psi.net (38.26.84.114) X-Trace: fu-berlin.de 979194189 11147129 38.26.84.114 (16 [57378]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Actually, it's possible to make .COM programs with GCC but for that we also need NASM plus some code to get into PMode. Basic problems are: 1. DOS/Windows treats .COM program as 16-bit real-mode 2. .COM file size is limited to 64KB So, in general, it's not worth to mess with those things. Though I used this for my LFBemulator. -- Alexei A. Frounze alexfru [AT] chat [DOT] ru frounze [AT] ece [DOT] rochester [DOT] edu http://alexfru.chat.ru http://members.xoom.com/alexfru/ http://welcome.to/pmode/ "Stefan Viljoen" wrote in message news:93jgj4$7j6$3 AT ctb-nnrp2 DOT saix DOT net... > > Adrian Smith wrote in message > news:3a59e424$1 AT news DOT telinco DOT net... > > Hi, > > This maybe a silly question but does anybody know how to use the > djgpp > > compiler and linker to generate .COM files I can only generate .EXE files > at > > the mo.I've read throught he FAQ etc but cant find any reference to the > > subject. > > > > Thanks. > > DJGPP cannot produce .COM executables - get NASM for that. You have to code > in assembly, but it can produce .COM files - which incidentally are limited > to 64k code and data... > > Stefan Viljoen > F/EMS Dispatcher > Potchefstroom F/EMS > South Africa > http://home.intekom.com/rylan/ > >