Hello friends. I see the list is very quiet at the moment. I am
looking for a way to crosscompile from Linux/i386 to another operating
system we are developing here at V2 Rotterdam (V2_OS, you may have
heard about it).
I am personally trying to whip up a system to produce executables from
standard Linux tools. I am using Linux GCC, producing .o files, and
then linking them together with ld using a crafted ld script (that
cost me bucketloads of sweat...). And the method is working, with
these two sad exceptions:
1) sometimes I have to lret from a function instead of ret'ing. We
solved the problem with a medium-rare hack (inserting the lret by
force after restoring the stack). But the ideal should be to
declare those subroutines "far" like in old dos days...
2) Memory access happens always in your data segment. We would really
love to be making pointer arithmetics with pointers in other
segments (gs for example - the one that allows you to access to the
whole memory, base address = 0 and limit = 4G). Here too the ideal
things would be to declare those pointers "far" and have them
handled automagically.
I somehow epidermically feel that the only clean way is to do a
complete port of gcc/binutils to the new OS. But that's a huuuge chunk
of work (especially for a person who has very little experience in
this), and we are soooo near to an ideal solution already.
SO it is time to knock at the door of GCC gurus. This is my first
attempt. Maybe a less-linux-specific list is more appropriate, and I'd
like to receive pointers in that directions. Or, maybe, there is an
easy solution to get to our desired goal and you may shed some
light...
Lots of thanks in advance...
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - [EMAIL PROTECTED] che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)