Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!thor.atd.ucar.edu!thor From: thor@thor.atd.ucar.edu (Richard Neitzel) Newsgroups: comp.realtime Subject: Re: initialization with g++ and vxWorks Message-ID: <10309@ncar.ucar.edu> Date: 15 Feb 91 14:26:20 GMT Sender: news@ncar.ucar.edu Organization: National Center for Atmospheric Research, Remote Sensing Facility Lines: 33 monica@srchtec.uucp (Monica Skidmore) writes: >We have tried to use collect, but we are having trouble getting it to >compile on our SUN 3. There are several macros which should expand to >assembly language which are undefined. Does anyone know how we should >define these macros? Try adding: #ifdef sun #define ASM_INT_OP ".long" #endif And modify the output macros to read: #ifndef ASM_OUTPUT_INT_CONST #define ASM_OUTPUT_INT_CONST(FILE,VALUE) \ fprintf(FILE,"\t%s\t%d\n", ASM_INT_OP, VALUE) #endif #ifndef ASM_OUTPUT_LABELREF_AS_INT #define ASM_OUTPUT_LABELREF_AS_INT(FILE,NAME) \ (fprintf(FILE,"\t%s\t", ASM_INT_OP), \ ASM_OUTPUT_LABELREF(FILE,NAME), \ fprintf(FILE,"\n")) #endif The tabs are needed in place of spaces to keep the assembler from choking. -- Richard Neitzel thor@thor.atd.ucar.edu Torren med sitt skjegg National Center For Atmospheric Research lokkar borni under sole-vegg Box 3000 Boulder, CO 80307-3000 Gjo'i med sitt shinn 303-497-2057 jagar borni inn.