TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: david nugent
from: andrew clarke
date: 1996-03-25 03:00:36
subject: wanted MS C v6

23 Mar 96 04:14, david nugent wrote to andrew clarke:

 ac>> FWIW, Microsoft QuickC 2.5 for DOS is a cut-down version of
 ac>> Microsoft C 6.0.

 > Almost everything except the optimiser.

QC has an optimiser, albeit not a particularly configurable one.

/Ol = enable loop optimisations
/Ot = optimise for speed
/Ox = /Olt /Gs
/Gs = disable stack checking
/G0 = 8086 instruction set
/G1 = 80186 instruction set
/G2 = 80286 instruction set

 > Personally, the only reason I ever liked Microsoft compilers is
 > *because* of the optimiser. But QC also had some other limitations;
 > for example, it couldn't do p-code, produce protected mode  object
 > files, output assembler from C and do inline assembler (there were
 > probably more - I never used QC, so it was never an issue).

Right - except QC can do inline assembler with the best of them. :-)

unsigned short biosequiplist(void)
{
    _asm {
        int    0x11
    }
    /* return value in AX */
}

Unfortunately there doesn't seem to be a way (eg. a pragma) to tell the QC
compiler that the function should return whatever value happens to be in
AX; the compiler will always report a "No return value" warning. 
The online help doesn't hint at anything to disable this warning on a
function-by-fun ction basis.  I could always disable all warnings, but
that's somewhat less than useful.

Incidentally, you can't do inline assembler in WATCOM C, right?  Or is that
what #pragma aux is for?  

Regards
Andrew

--- Msgedsq/2 3.30
* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/727.4{at}fidonet)
SEEN-BY: 50/99 78/0 620/243 623/630 632/349 634/395 635/503 544 727 711/401
SEEN-BY: 711/409 410 413 430 510 808 809 932 934 712/515 713/888 714/906
SEEN-BY: 800/1 7877/2809
@PATH: 635/727 544 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.