[comp.os.minix] cross compiling 1.5.9 on msc5.1 anyone?

eyal@cancol.oz (Eyal Lebedinsky) (05/06/90)

Hello everyone,

I am cross compiling minix-1.5.9 on msc5.1; I have problems:

1 limits.h: ULONG_MAX gives an error, I replaced it with a hex constant.
2 vectab.c: msc want an initializer to force __vectab to be defined.
3 interrupt: this is an extended feature of msc, I use the -Za flag.
4 ctime.c: uses double for difftime(); I commented the function out.
5 a.out.h: well, this is a usual dos problem.
6 dos2out: it seems to allocate room for bss in the .out, so it comes out very
  large. Can this be avoided? I think minix does not expect this space to be
  there.
7 segments layout: I am experimenting with these in an attempt to get things
  in order. So far I added 'c_common' and 'CONST'.
8 __acrtused: added this to end.asm. Can realy be anywhere.
9 s2asm: when doing kernel/rs2, I did the cpp on minix and then xfered the rs2.s
  to dos, then did s2asm. It generated bad code. It seems that rs2.x uses 'ebx'
  and it then gets #defined to 'bx' but with three tabs appended to it. Now the
  s2asm script fails to recognize the proper addressing mode (I think that masm
  complained about illegal register use in rs2.asm lines 100&191).

This should be enough to start with. I am not yet using mcc, does anybody use
it with msc5+masm?

-- 
Regards
	Eyal