Xref: utzoo gnu.g++.help:881 comp.sys.pyramid:1154 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!pta!bgg From: bgg@pta.pyramid.com.au (Ben Golding) Newsgroups: gnu.g++.help,comp.sys.pyramid Subject: Re: Building G++ on Pyramid Keywords: g++ pyramid Message-ID: <7319@pta.pyramid.com.au> Date: 25 Jun 91 08:48:33 GMT References: <1991Jun22.145936.14935@monu6.cc.monash.edu.au> <1991Jun23.015823.25711@comp.vuw.ac.nz> Followup-To: gnu.g++.help Organization: Pyramid Technology Corporation, Sydney Lines: 18 In article <1991Jun23.015823.25711@comp.vuw.ac.nz> jonathan@beta.isor.vuw.ac.nz (Jonathan Stone) writes: >In article <1991Jun22.145936.14935@monu6.cc.monash.edu.au> anthony@monu6.cc.monash.edu.au (Anthony Baxter) writes: >>Has anyone had any luck using g++ on a Pyramid? I've managed to get >>it compiled, but it produces assembler with labels like __$_FooBar, >>and the Pyramid as doesnt allow $ as a valid character in a label. > >You don't want to look in the G++ source code to fix this. The >standard workaround to this problem is to use some character other than '$', >but the Pyramid assembler also rejects that character in labels. If you're trying to prevent accidental name collisions you could use "." -- the assembler accepts that in labels. If you insist on "$" being labels then you're out of luck. It's already used for immediate operands. A special version of the assembler would be ugly. Consider "$name", what does it refer to? Ben.