The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Antonin on November 30, 2007, 03:50:38 AM

Title: a problem with the MASM keywords
Post by: Antonin on November 30, 2007, 03:50:38 AM
While I'm doing mixed programming of C and ASM, a serious problem occurs.
My asm. program must use some external function name or variable name defined in C file which is identical with the MASM keywords, like "ADD, SUB, GT, ...". What should I do? Help me! thanks a lot!
Title: Re: a problem with the MASM keywords
Post by: donkey on November 30, 2007, 02:01:32 PM
Hi,

Not much of a C programmer but as I understand it an underscore is prefixed to all externals in C so ADD would actually be addressed as _ADD which is not a conflict with MASM keywords. I may be corrected on this but that is what I have been lead to believe.

Donkey