From: Anton K. <as...@ma...> - 2005-08-23 08:45:51
|
Hello, Sten. You wrote Tuesday, August 23, 2005, 11:56:36 AM: S> Well, anyway, we discussed the problem with Anton and decided we need S> the platform dependent config.h files that should define macroses like S> ATT_ASSEBLY for AT&T syntax and MSC_ASSEMBLY - for MS VC assembler. Some small addition: GGNFS_32BIT_ATT_MSSEMBLER and GGNFS_32BIT_MSC_ASSEMBLER. Quite long, but meaningfull. GGNFS prefix *should* be used. For examples, for some time BIGENDIAN define had been used in lattice siever, but winsock2.h define BIGENDIAN as well. S> \include\config\config.h - common config file, this file is included by S> all .c files and "decides" which platform S> dependent file to include. You're absolutely right. S> Anton gave other examples of defines with "semantic meaning" but I S> forgot them. :) Another one example - GGNFS_ASM_UL. Underscore should be used for *all* external names used inside inline assembler under mingw32 & cygwin. -- With best regards, Anton mailto:as...@ma... Tuesday, August 23, 2005 12:48:45 PM Faculty of Mathematics & Mechanics, Saint-Petersburg State University |