Spaces:
Sleeping
Sleeping
Ticket Name: Compiler/TDA2: Gmake optimization and language options | |
Query Text: | |
Part Number: TDA2 Tool/software: TI C/C++ Compiler Hi, I use vision sdk 3.04 for ubuntu. How could I enable optimization and c99/c11 options for gmake? Or where can I read about it? Thanks for answers. | |
Responses: | |
Hi, You can add c flags in vision_sdk/build/rtos/makerules/ Please follow the below doc \PROCESSOR_SDK_VISION_03_03_00_00\vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_UserGuide_BuildSystem.pdf Regards, Anuj | |
Hi, For example, For A15 add "CFLAGS_INTERNAL+= -std=c99 " enable c99 option, is it right? | |
Hi, You can not do like that coz if you modify CFLAGS_INTERNAL it will be same for c and cpp file and for cpp files -std=c99 is not a valid flag. So add it where it compiling c files only like below $(OBJ_PATHS): $(OBJDIR)/%.$(OBJEXT): %.c $(ECHO) \# Compiling $(PLATFORM):$(CORE):$(PROFILE_$(CORE)):$(APP_NAME)$(MODULE_NAME): $< $(CC) -MD -MF $(DEPDIR)/$(basename $(notdir $<)).P -std=c99 $(_CFLAGS) $(INCLUDES) $(CFLAGS_DIROPTS) -o $(OBJDIR)/$(basename $(notdir $<)).$(OBJEXT) $< Regards, Anuj | |
Thank you | |