Re: 16-bit real-mode code

2005-02-28 Thread DJ Delorie
> (insn 28 26 29 1 /mnt/disk2/src/gcc/gcc/libgcc2.c:464 (set (mem/i:HI > (reg/f:HI 8 si [orig:30 D.1371 ] [30]) [5 +0 S2 A16]) > (subreg:HI (reg/v:DI 31 [ u ]) 0)) 1 {*movhi} (nil) > (nil)) This is a tricky one. You need to split up the moves early enough to let reload be flexible,

Re: 16-bit real-mode code

2005-02-28 Thread Bernd Jendrissek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Feb 28, 2005 at 10:13:00AM +0100, Josef Angermeier wrote: > Rehi > > It's been done a couple of times already, first by me, and later my > > code was extended by a couple of other people. Don't know if you > > want to start from scratch "on pr

Re: 16-bit real-mode code

2005-02-28 Thread Josef Angermeier
Rehi > It's been done a couple of times already, first by me, and later my > code was extended by a couple of other people. Don't know if you want > to start from scratch "on principle" though, otherwise search the mail > archives. Just forget about the thesis. Tell me where to get that patch/co

Re: 16-bit real-mode code

2005-02-23 Thread Etienne Lorrain
> 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. I do not know the virtual machine at your university, but there is two different project you ma

Re: 16-bit real-mode code

2005-02-23 Thread DJ Delorie
> 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: You're confusing hosts with targets. GCC *runs on* 32 bit (or more) hosts, but it can *target* smaller machines. We've got lot

Re: 16-bit real-mode code

2005-02-23 Thread Sam Lauber
> 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

Re: 16-bit real-mode code

2005-02-23 Thread DJ Delorie
> 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. It's been done a couple of times already, first by me, and later my code was extended by a couple