Article View: comp.os.msdos.programmer
Article #3749Re: Generating 80x86 code from a compiler (NO DOS)
From: Patrick Draper
Date: Tue, 13 Oct 1992 03:17
Date: Tue, 13 Oct 1992 03:17
31 lines
2016 bytes
2016 bytes
In article <9210061742.AA05172@deepthought.cs.utexas.edu> STDN%MARIST@VM.MARIST.EDU (Dan Newcombe) writes: >What I want to do is this: > Generate pure 80x86 code from a compiler that could be used without >DOS. I don't want stuff like INT 21 and all of those functions. > >Can this be done with any compilers out there? Or do I need to >write my own? > > -Dan You'll can do it with Borland C++, and I'm sure quite a few others. The two things you'll want to watch for is 1) the runtime libary and 2) the startup code. Borland includes the startup code for it's compiler, which you can modify and reassemble. The Borland 3.1 compiler also has source code for the runtime library which you can analyze to determine what functions don't use DOS. Straight C won't generate DOS, or BIOS calls. If you throw away the standard runtime library, you are reduced to writing your own functions. It's a lot of work, but it can be done. As a reference, I recommend P.J. Plaugher's *The Standard C Library*. The source code in there can probably be adapted to your means. I understand that he's releasing an updated version of the source from that book. ------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------ | Patrick Draper Disclaimer: I can't control my fingers, | | draper@umcc.ais.org I can't control my toes! - Ramones | | University of Michigan Computer Club | NO CARRIER We are a nation of laws, not people | ------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
Technical Details
Message-ID:
<Bw1IGH.Cx6@ais.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!umn.edu!umeecs!ais.org!draperReferences:
<9210061742.AA05172@deepthought.cs.utexas.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!umn.edu!umeecs!ais.org!draper From: draper@ais.org (Patrick Draper) Subject: Re: Generating 80x86 code from a compiler (NO DOS) Message-ID: <Bw1IGH.Cx6@ais.org> Organization: UMCC References: <9210061742.AA05172@deepthought.cs.utexas.edu> Date: Tue, 13 Oct 1992 03:17:03 GMT Lines: 31