Path: utzoo!attcan!uunet!decwrl!hayes.fai.alaska.edu!acad3.fai.alaska.edu!ftpam1 From: ftpam1@acad3.fai.alaska.edu (MUNTS PHILLIP A) Newsgroups: comp.lang.pascal Subject: Re: Writing ROMable code using Turbo Pascal (Also Turbo C and Assemb) Keywords: IBM PC Message-ID: <1990Sep15.054458.20518@hayes.fai.alaska.edu> Date: 15 Sep 90 05:44:58 GMT References: <11972@chaph.usc.edu> Sender: usenet@hayes.fai.alaska.edu (J Random USENET) Reply-To: ftpam1@acad3.fai.alaska.edu Organization: University of Alaska Fairbanks Lines: 23 News-Software: VAX/VMS VNEWS 1.3-4 In article <11972@chaph.usc.edu>, mevawall@girtab.usc.edu (Shehzad Mevawalla) writes... >Is it possible to write ROMable code using Turbo Pascal, Turbo C and Turbo >Assembler? That is how can I prevent DOS and BIOS system calls in the >executables? It has been my (small) experience that C compilers have no OS dependance built into the compiler. If you rewrite the library modules, and especially the run-time startup routine, you are set. (I haven't tried Turbo C.) On the other hand, Turbo Pascal has OS calls liberally strewn throughout the run-time support, and in fact generated by the compiler in-line, as well. This makes it difficult to use Turbo Pascal on a "bare machine." One possibility which I have read about but not actually tried, is a minimal DOS emulation package. One such package costs $495 and includes licenses for 5 or 10 units. It can provide as much DOS emulation as you need (from simple console I/O to files) and whatever you don't need you can trim off. It's called ROM-DOS or something like that; if anybody is interested I can dig through the literature pile and find the details. Philip Munts N7AHL NRA Extremist, etc. University of Alaska, Fairbanks