This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Mike, I don't know what address is the GCC help. Please forward my question. Appreciated, Ronen. Hi, I am using the GCC compiler to compile/link a program for embedded target running PowerPC in LITTLE ENDIAN mode. I chose the following in the makefile : -mcpu=powerpcle-*-eabi (which I understand is the suitable for embedded PowerPC in little endian mode). I am not sure if that is the correct thing to do. Let me know if someone can assist me. Ronen. ========================== the makefile is below ============================ PRJ_DIR = $(WIND_BASE)/target/proj/IRQ PRJ_FILE = IRQ.wpj PRJ_TYPE = vxWorks PRJ_OBJS = sysALib.o usrAppInit.o prjConfig.o BOOT_OBJS = BUILD_SPEC = default BSP_DIR = $(WIND_BASE)/target/config/estMdpBasic8xx TGT_DIR = $(WIND_BASE)/target ## set searching directories for dependencies vpath %.c $(BSP_DIR) vpath %.cpp $(BSP_DIR) vpath %.cxx $(BSP_DIR) ## build-configuration info ifeq ($(BUILD_SPEC),default) CPU = PPC860 TOOL = gnu DEFAULT_RULE = vxWorks endif ## component-configuration info COMPONENTS = COMPONENT_LIBS = include $(TGT_DIR)/h/make/defs.project ## build-configuration info ifeq ($(BUILD_SPEC),default) ADDED_CFLAGS = -g -O0 $(EST_RCFLAGS) AR = arppc AS = ccppc ## BOOTCONFIG = bootConfig.c CC = ccppc CFLAGS = -g -mcpu=powerpcle-*-eabi -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -I$(PRJ_DIR) -I$(WIND_BASE)/target/config/estMdpBasic8xx -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/config/comps/src -I$(WIND_BASE)/target/src/drv -DCPU=PPC860 -DPRJ_BUILD -DMDP_BASIC -g -O0 -DROM_BASED CFLAGS_AS = -g -mcpu=powerpcle-*-eabi -ansi -nostdinc -fvolatile -fno-builtin -fno-for-scope -P -x assembler-with-cpp -I$(PRJ_DIR) -I$(WIND_BASE)/target/config/estMdpBasic8xx -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/config/comps/src -I$(WIND_BASE)/target/src/drv -DCPU=PPC860 -DPRJ_BUILD -DMDP_BASIC -g -O0 -DROM_BASED CPP = ccppc -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -E -P -xc EST_PLATFORM = MDP_BASIC EST_RCFLAGS = -DROM_BASED LD = ldppc LDFLAGS = -X -N LD_PARTIAL = ccppc -mcpu=powerpcle-*-eabi -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -nostdlib -r -Wl,-X LD_PARTIAL_FLAGS = -X -r LIBS = LOCAL_MEM_LOCAL_ADRS = 00000000 # Physical start of RAM LOCAL_MEM_SIZE = 00400000 # 4 Megbyte NM = nmppc OPTION_DEFINE_MACRO = -D OPTION_INCLUDE_DIR = -I RAM_HIGH_ADRS = 00300000 # RAM text/data address RAM_LOW_ADRS = 00100000 # RAM text/data address ROM_BASE_ADRS = fff00000 # Physical start of ROM SIZE = sizeppc USRCONFIG = usrConfig.c POST_BUILD_RULE = EXTRA_MODULES = endif # override make definitions only below this line # override make definitions only above this line include $(TGT_DIR)/h/make/rules.project ## build-configuration info ifeq ($(BUILD_SPEC),default) sysALib.o: $(AS) -g -mcpu=powerpcle-*-eabi -ansi -nostdinc -fvolatile -fno-builtin -fno-for-scope -P -x assembler-with-cpp -I$(PRJ_DIR) -I$(WIND_BASE)/target/config/estMdpBasic8xx -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/config/comps/src -I$(WIND_BASE)/target/src/drv -DCPU=PPC860 -DPRJ_BUILD -DMDP_BASIC -g -O0 -DROM_BASED -c $(WIND_BASE)/target/config/estMdpBasic8xx/sysALib.s -o sysALib.o usrAppInit.o: $(CC) -g -mcpu=powerpcle-*-eabi -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -I$(PRJ_DIR) -I$(WIND_BASE)/target/config/estMdpBasic8xx -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/config/comps/src -I$(WIND_BASE)/target/src/drv -DCPU=PPC860 -DPRJ_BUILD -DMDP_BASIC -g -O0 -DROM_BASED -c $(PRJ_DIR)/usrAppInit.c prjConfig.o: $(CC) -g -mcpu=powerpcle-*-eabi -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -I$(PRJ_DIR) -I$(WIND_BASE)/target/config/estMdpBasic8xx -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/config/comps/src -I$(WIND_BASE)/target/src/drv -DCPU=PPC860 -DPRJ_BUILD -DMDP_BASIC -g -O0 -DROM_BASED -c $(PRJ_DIR)/prjConfig.c endif ## dependencies sysALib.o: $(WIND_BASE)/target/config/estMdpBasic8xx/sysALib.s \ $(PRJ_DIR)/prjComps.h \ $(PRJ_DIR)/prjParams.h usrAppInit.o: $(PRJ_DIR)/usrAppInit.c prjConfig.o: $(PRJ_DIR)/prjConfig.c $(PRJ_DIR)/prjComps.h $(PRJ_DIR)/prjParams.h ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |