On Tue, 20 Apr 2004, Arkady V.Belousov wrote: > Isn't better for Watcom declare call_int2f through "#pragma aux" and do > "#define network_redirector call_int2f"? Like this: > > %ifndef WATCOM > global NETWORK_REDIRECTOR > NETWORK_REDIRECTOR: > ... > ret 2 > %endif > > > +++ proto.h 20 Apr 2004 18:43:03 -0000 1.62 > > /* network.c */ > > +COUNT ASMPASCAL network_redirector(unsigned cmd); > [...] > > #pragma aux (cdecl_axdx) remote_printset > > -#pragma aux (cdecl_axdx) remote_rename > > +#pragma aux (pascal) network_redirector modify exact [ax dx] > > #pragma aux (pascal) call_int2f parm [al] modify exact [ax dx] > #define network_redirector call_int2f
Well I am basically looking into converting much of call_int2f into C -- leaving only the bit between int2f_call_push and no_neg_ax, and what goes below lseekeof in assembly language. This way the compiler can use better calling conventions for the callers (without needing funky compiler dependent assembly language) so the code size will decrease a bit too. (yes Tom, you hear that well I'm converting asm to C here!) The present patches are just intermediate stages to get closer -- maybe the remaining bits will be able to benefit from a few pragma's though but I first like to get the "portable" code up and running. Bart ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel
