> 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

Reply via email to