Improved and simplified optimization flags for nes/gb/pce
This commit is contained in:
parent
8d7edbb21b
commit
4bad4dde12
@ -7,4 +7,6 @@
|
||||
# please read the ESP-IDF documents if you need to do this.
|
||||
#
|
||||
|
||||
COMPONENT_ADD_INCLUDEDIRS := .
|
||||
COMPONENT_ADD_INCLUDEDIRS := .
|
||||
|
||||
CFLAGS += -O3
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include "odroid_display.h"
|
||||
#include "odroid_settings.h"
|
||||
#include "odroid_system.h"
|
||||
|
||||
@ -7,4 +7,4 @@
|
||||
# please read the ESP-IDF documents if you need to do this.
|
||||
#
|
||||
|
||||
CFLAGS += -DIS_LITTLE_ENDIAN
|
||||
CFLAGS += -O3 -DIS_LITTLE_ENDIAN
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include "defs.h"
|
||||
#include "regs.h"
|
||||
#include "hw.h"
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include "stdlib.h"
|
||||
#include "esp_attr.h"
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
@ -10,6 +10,5 @@
|
||||
COMPONENT_ADD_INCLUDEDIRS := . ./includes ./engine ./netplay
|
||||
COMPONENT_SRCDIRS := . engine
|
||||
|
||||
CFLAGS += -DLSB_FIRST=1 -Wno-all -Wno-error
|
||||
CFLAGS += -Ofast -DLSB_FIRST=1 -Wno-all -Wno-error
|
||||
CPPFLAGS += -DLSB_FIRST=1 -Wno-all -Wno-error
|
||||
CXXFLAGS += -DLSB_FIRST=1 -Wno-all -Wno-error
|
||||
|
||||
@ -9,7 +9,5 @@
|
||||
COMPILEDATE:=\"$(shell date "+%Y%m%d")\"
|
||||
GITREV:=\"$(shell git rev-parse HEAD | cut -b 1-10)\"
|
||||
|
||||
#OPTIMIZATION_FLAGS = -Ofast
|
||||
|
||||
CFLAGS += -Ofast -DCOMPILEDATE="$(COMPILEDATE)" -DGITREV="$(GITREV)"
|
||||
CPPFLAGS += -Ofast -DCOMPILEDATE="$(COMPILEDATE)" -DGITREV="$(GITREV)"
|
||||
|
||||
@ -10,4 +10,4 @@
|
||||
COMPONENT_ADD_INCLUDEDIRS := cpu libsnss nes sndhrdw .
|
||||
COMPONENT_SRCDIRS := cpu libsnss nes sndhrdw mappers .
|
||||
|
||||
CFLAGS += -Wno-error=char-subscripts -Wno-error=attributes
|
||||
CFLAGS += -O3 -Wno-error=char-subscripts -Wno-error=attributes
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
/*
|
||||
** Nofrendo (c) 1998-2000 Matthew Conte (matt@conte.com)
|
||||
**
|
||||
@ -26,8 +24,6 @@
|
||||
*/
|
||||
|
||||
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <noftypes.h>
|
||||
#include "nes6502.h"
|
||||
#include "dis6502.h"
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
** $Id: nes.c,v 1.2 2001/04/27 14:37:11 neil Exp $
|
||||
*/
|
||||
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
** $Id: nes_apu.c,v 1.2 2001/04/27 14:37:11 neil Exp $
|
||||
*/
|
||||
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <string.h>
|
||||
#include <noftypes.h>
|
||||
#include <log.h>
|
||||
|
||||
@ -22,7 +22,6 @@
|
||||
** NES PPU emulation
|
||||
** $Id: nes_ppu.c,v 1.2 2001/04/27 14:37:11 neil Exp $
|
||||
*/
|
||||
#pragma GCC optimize ("O3")
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user