VC8 build

Peter Johnson peter at tortall.net
Mon Oct 2 15:28:34 PDT 2006


On Mon, 2 Oct 2006, Charles Bailey wrote:
> I've recently got back into assembler programming.  I used to dabble a
> bit in ARM stuff, but now I'm interested in doing some stuff with the
> 387 FPU instructions, principally as you can't get access to 80-bit
> extended precision from the VC8 C compiler (as far as I can tell).

It's been a long while since I looked (probably back in DOS days with 
Borland compilers), but I seem to recall that "long double" is the magic 
incantation required to use 80-bit floating point.

> I've just built YASM from cvs using the VC8 sln/vcproj files and I had a
> couple of questions.
>
> First, although you are supposed to get the latest *-bison.c and
> *-bison.h from a recent snapshot, would there be any reason not to add
> support for building these files using a installed mingw or cygwin
> bison?  I have a patch which enables this, although one could start off
> by using the "exclude from build" property on the *.y files if that was
> what most people wanted.

Please send the patch my direction; there's no real reason not to have it, 
other than lack of time on my part.  Although I think I agree with you 
that it should probably be disabled by default so people could build 
straight from a snapshot without needing to have any tools other than VC8 
installed.

> Secondly because of MS' slightly questionable decision to deprecate a
> whole host of standard library functions early, there are a whole whack
> of pointless warnings.  It is a fairly simple matter to define the
> "_CRT_SECURE_NO_DEPRECATE" (IIRC) macro in a vsprops files, add it to
> the solution and make the other vcproj builds inherit from this.  Again
> I have a patch if you're interested.

That's a good idea; I've disabled the warnings in the yasm build portion 
by defining that macro in the vc8/config.h file, but you still get the
warnings for the tools (like re2c) that don't include config.h.  Doing it 
in vsprops sounds like a better idea; please send me the patch and I'll 
get it incorporated.

Thanks,
Peter


More information about the yasm-devel mailing list