Suggested patch for defmod

Tom Hughes tom at compton.nu
Sun Apr 30 15:10:38 BST 2000


In message <4b189bb149.sbrodie at sbrodie.cam.pace.co.uk>
          Stewart Brodie <stewart.brodie at pace.co.uk> wrote:

> There are two independent factors: 26-bit/32-bit processor mode execution,
> and 26-bit/32-bit APCS.  Whilst you must not use the 26-bit APCS whilst
> executing in a 32-bit mode, it is perfectly legal to use the 32-bit APCS when
> running in 26-bit modes, even on systems that do not have 32-bit modes at
> all, and that is what my patch allows.  In fact, APCS 3/32 on a 26-bit mode
> systems is the transitional phase it would be ideal for people to move to in
> preparation for future processors which do not have any 26-bit modes, should
> they ever come out.

Right. Given that the only cost of allowing the generated code to
work in both 26 and 32 bit modes is a single MOV instruction your're
probably right.

Doing this would have the further advantage that we could build
future releases as 32 bit so we don't need to maintain two builds
as users move to 32 bit environments.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
...System checkpoint complete.




More information about the oslib-team mailing list