Hi Guys,

Well, we went back and re-visited the Assyntax.h stuff again, and 
worked through the problems we were having. The problems we had were 
as follows:

 1. No 'good' cpp is available on Win32 with most compilers. To solve 
this we now have a copy of the Cygwin cpp.exe in our build path 
called 'gcpp.exe' that we use in our makefiles.

 2. Segment naming was all wrong for NASM. Firstly the segment names 
can't be '.text' for most Win32 compilers, while the GNU C compilers 
require this. For Win32 compilers it should be '_TEXT'. 

 3. Segment attributes were wrong for NASM. The segment attributes 
were not defined in NASM, and a simple 'SECTION .text' was used. This 
causes problems because the default segment attributes used by NASM 
for OMF object files is use16, which means the code is assembled as 
16-bit! You can imagine what havoc that caused ;-)

So, we now have it working properly so that gcpp.exe is used to pre-
process the code, and NASM will correctly assemble the resulting 
output. Better yet, it actually works at runtime now ;-).

So for now it is working, albiet only for the Watcom C++ compiler on 
Win32. All bets are off for other compilers, but we only need Watcom 
C++ support because we build all the Mesa code into a 'Binary 
Portable DLL' with Watcom that is used with all compilers on all 
platforms.

Regards,

+---------------------------------------------------------------+
|   SciTech Software - Building Truly Plug'n'Play Software!     |
+---------------------------------------------------------------+
| Kendall Bennett          | Email: [EMAIL PROTECTED]    |
| Director of Engineering  | Phone: (530) 894 8400              |
| SciTech Software, Inc.   | Fax  : (530) 894 9069              |
| 505 Wall Street          | ftp  : ftp.scitechsoft.com         |
| Chico, CA 95928, USA     | www  : http://www.scitechsoft.com  |
+---------------------------------------------------------------+



_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to