Added -O3 optimization option to g++

This commit is contained in:
mariusmonton 2018-09-15 11:43:33 +02:00
parent 53b6234ecb
commit c5ec56ec08
2 changed files with 16 additions and 11 deletions

View File

@ -5,7 +5,7 @@ TARGET_ARCH=linux64
CC = g++ CC = g++
# compiling flags here # compiling flags here
CFLAGS = -Wall -I. CFLAGS = -Wall -I. -O3
LINKER = g++ LINKER = g++
# linking flags here # linking flags here

View File

@ -13,13 +13,18 @@ Brief description of the modules:
* Instruction: Decodes instruction and acces to any instruction field * Instruction: Decodes instruction and acces to any instruction field
* Simulation: Top-level entity that builds & starts the simulation * Simulation: Top-level entity that builds & starts the simulation
Current performance is about 166000 instructions / sec in a Core-i5@2.2Ghz Current performance is about 284500 instructions / sec in a Core-i5@2.2Ghz
Helper classes: Helper classes:
* Performance: Performance indicators stores here (singleton class) * Performance: Performance indicators stores here (singleton class)
* Log: Log class to log them all (singleton class) * Log: Log class to log them all (singleton class)
### Structure
## TODO ## TODO
This is a preliminar and incomplete version. This is a preliminar and incomplete version.
@ -80,14 +85,14 @@ There are several ways to contribute to this project:
Copyright (C) 2018 Màrius Montón ([\@mariusmonton](https://twitter.com/mariusmonton/)) Copyright (C) 2018 Màrius Montón ([\@mariusmonton](https://twitter.com/mariusmonton/))
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.