Turning off all inlining and constant propagation for now

Can always turn these back on again later, it's just easier to debug with
them off
This commit is contained in:
jeffman 2017-04-15 12:46:34 -04:00
parent 89a848376a
commit fcee9591b1
2 changed files with 4 additions and 2 deletions

View File

@ -211,6 +211,8 @@ namespace Amalgamator
"-o", objectName,
"-c",
"-O3",
"-fno-ipa-cp",
"-fno-inline",
fileName,
"-march=armv4t",
"-mtune=arm7tdmi",

View File

@ -1,7 +1,7 @@
#include "window.h"
#include "vwf.h"
int __attribute__((noinline)) get_tile_number(int x, int y)
int get_tile_number(int x, int y)
{
x--;
y--;
@ -25,7 +25,7 @@ byte reduce_bit_depth(int row, int foreground)
return lower | (upper << 4);
}
byte __attribute__ ((noinline)) print_character(byte chr, byte x, byte y, byte font, byte foreground)
byte print_character(byte chr, byte x, byte y, byte font, byte foreground)
{
int tileWidth = m2_font_widths[font];
int tileHeight = m2_font_heights[font];