Blame | Last modification | View Log | Download | RSS feed
Hello, AS-Users,OK, here it is, the C-Version of AS that is theoretically compilableon any system that has an ANSI-C-compiler! After a couple ofoptimizations, the performance degradations due to the way C handlesstrings have been compensated, so the C version should effectively runa bit faster than the original Pascal version.LICENSINGAS is based upon the GNU General Public License (GPL); read the fileCOPYING for its details. You should have received a copy of this filetogether with AS; if not, someone sneaked in!PLATFORMSThe C version of AS was designed primarily to work with a Unix-like systemwith an ANSI-C compilant compiler. Specifically, I have tested this versionof AS on the following machines:- Digital Unix 3.2/4.0 with DEC-C- Digital Ultrix for Mips 4.3/4.5 with gcc 2.7.2- Digital Ultrix for VAX 4.1/4.5 with gcc 2.7.2- Linux/Alpha with gcc 2.7.2- Linux/Intel with gcc 2.7.2- HP9000/7xx HP-UX 9.0/10.0 with HP-C- MS-DOS with Borland-C 3.1 resp. 4.5- OS/2 with emx 0.9- Munix V.3 with cc- NetBSD/Sun3 with gcc 2.7.2- NetBSD/pmax with gcc 2.7.2- SGI Irix 5.3/6.2 with SGI-C- SunOS 4.1.3/Sparc with gcc 2.6.3 or cc- Solaris 2.5/Sparc with Sun-C 3.0.1- IBM RS/6000 AIX 4.1 with IBM XLCAdditionally, you can now build and run AS on Windows, using- Microsoft Visual Studio (2019 and up tested)- MSYS2:MinGW-64 (GCC 13.1.0 [and up] tested)- TinyC (I use this a lot, and it builds fine with it)and it seems to run fine on Windows XP (32b), Windows 7 (32/64b),Windows 8.1 (ARM), Windows 10/11 (x64 and ARM64.) The Windows ARMbinaries had to be signed, of course, and soon, so will the Windows11 ones have to be. See README.MSVC for instructions.DIFFERENCES / THINGS TO DOThe portable C version of AS has the following, known differences tothe original BP version:- Floating point values are internally only stored as IEEE doubleprecision values, not in the 80-bit format Intel NPUs use.Therefore, floating point ranges and accuracy are not as good as inthe BP version. Currently, there seems to be no portable,standardized 128-bit-format for FP numbers. Every vendor (IBM,SUN, CRAY, SGI...) uses his own format, so supporting them alllooks like a lot of work...+ On most systems, integer arithmetic is done with 64-bit-numbers.This should hurt only programs that explicitly exploit overflowand sign effects on 32-bit-versions of AS.~ most UNIX systems name their own assembler already 'as', so I hadto modify the name to 'asl'. The additional letter is to the honorof a person that did quite a lot to spread the UNIX philosophy ;-)I also had to rename 'bind' to 'pbind', but I guess that this won'tmatter too much as it is a rarely used tool.- the C version was designed to have exactly the same command lineinterface as the original BP version; however, UNIX shellsinterprete some special characters like the dollar sign for hexvalues in their own way, so you might have to work with escape (\)and quote characters.+ the USEXMS resp. USEEMS and ASXSWAP environment variables do notexist for Unix platforms (thankfully).- the AS2MSG filter does not exist (wouldn't make sense because thereis no Borland Pascal for Unix.)+ This version now contains dynamic switching of program messages, i.e.you do not have to compile AS any more for a specific language. Instead,AS will test the LC_MESSAGES, LC_ALL, or LANG environment variableson Unix resp. the COUNTRY settings on OS/2 and MSDOS to dynamicallyload the correct set of messages at runtime.INSTALLATIONSee the file 'INSTALL'FEEDBACKIn case of problems or questions, send them to alfred@ccac.rwth-aachen.de.For questions regarding building on Windows with MSVC, please see thefile README.MSVC and contact Fred N. van Kempen (waltje@varcem.com).