Thread overview
(mac only) "Invalid mnemonic"?
May 30, 2005
Carlos Santander
May 30, 2005
David Friedman
May 30, 2005
I tested this with DMD 0.125 and gdc 0.11 on linux (gcc 3.4.2) and it didn't give an error. However on mac (gdc 0.11, gcc 3.4.3) I had an error:

//---------------------------------------
void Á()
{}

void main()
{
	Á();
}
//---------------------------------------

I get "/var/tmp//ccismieQ.s:29:Invalid mnemonic '?FZv'". I also tried with this characters: áéíóúñÑÁÉÍÓÚ. It doesn't matter if I start the function with a non-accented letter. The weird thing is that sometimes I can use these characters on identifiers. Sometimes it works, sometimes it doesn't. There doesn't seem to be a pattern.

-- 
Carlos Santander Bernal
May 30, 2005
Carlos Santander wrote:
> I tested this with DMD 0.125 and gdc 0.11 on linux (gcc 3.4.2) and it didn't give an error. However on mac (gdc 0.11, gcc 3.4.3) I had an error:
> 
> //---------------------------------------
> void Á()
> {}
> 
> void main()
> {
>     Á();
> }
> //---------------------------------------
> 
> I get "/var/tmp//ccismieQ.s:29:Invalid mnemonic '?FZv'". I also tried with this characters: áéíóúñÑÁÉÍÓÚ. It doesn't matter if I start the function with a non-accented letter. The weird thing is that sometimes I can use these characters on identifiers. Sometimes it works, sometimes it doesn't. There doesn't seem to be a pattern.
> 

The assembler doesn't like those characters. This problem seems to have been fixed in Tiger (tried it just now).  If you are sticking with Panther, you might still be able use the assembler from the latest Darwin sources/binaries.

David
May 30, 2005
Carlos Santander wrote:

> I tested this with DMD 0.125 and gdc 0.11 on linux (gcc 3.4.2) and it didn't give an error. However on mac (gdc 0.11, gcc 3.4.3) I had an error:

I reported this as http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/983,
but then Walter said that he had "fixed" the D name mangling somehow ?
(DMD 0.116: http://www.digitalmars.com/d/changelog.html#new0116)

Maybe he didn't change all possibilities, or something.

--anders