This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 16-bit real-mode code
- From: "Sam Lauber" <sam124 at operamail dot com>
- To: "Josef Angermeier" <sijoange at cip dot informatik dot uni-erlangen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 24 Feb 2005 01:53:09 +0100
- Subject: Re: 16-bit real-mode code
> Hello
>
> I ponder about writing a "i386 16bit realmode" gcc backend as my master
> thesis - which would be usefull for generating 16-bit bios code needed
> by the virtual machine developed at my university.
>
> Having never programmed any compiler-related stuff and having a strict
> deadline (after 6 months) i would appreciate some commments about the
> complexity of such a venture.
>
> thanks in advance
> (please reply (also) directly to me, im not subscribed)
Complex. RM places a 64K stack segment limit. As far as I
know, GCC requires more than that. Also, GCC was only
written for 32-bit machines. My suggestions:
a) program GCC to fake 32-bitness by using two 16-bit
words
b) pack bits (somehow!) to fake a >64K stack segment
Samuel Lauber
--
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
From your mailbox to local or overseas cell phones.
Powered by Outblaze