After installation from sources m4-1.4.13 (with symlink /usr/local/bin/gm4 to m4) and bison-2.4.1 Tunguska was compiled:Shaos wrote:I checked - bad newsShaos wrote:
OK, and I'll check current code under MacOS X 10.4 on my PowerBook G4
MacOS X 10.4 has older bison version 1.28 that doesn't create cpp/hpp, instead it creates c/h files and I can't compile it even after renaming...
it's working, but very slow (in the beginning 10-15 seconds per frame, then about 5 seconds per frame).make
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o trit.o trit.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o tryte.o tryte.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o machine.o machine.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o tunguska.o tunguska.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o display.o display.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o keyboard.o keyboard.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o interrupt.o interrupt.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o disk.o disk.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o agdp.o agdp.cc
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o memory.o memory.cc
g++ trit.o tryte.o machine.o tunguska.o interrupt.o display.o keyboard.o disk.o agdp.o memory.o -o tunguska `pkg-config sdl --libs` -lfl -lz
bison -d parser.ypp
mv parser.tab.hpp parser.h
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o parser.tab.o parser.tab.cpp
In file included from /usr/include/gcc/darwin/4.0/c++/backward/iostream.h:31,
from /usr/include/FlexLexer.h:50,
from parser.ypp:25:
/usr/include/gcc/darwin/4.0/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
flex -+ scanner.l
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o lex.yy.o lex.yy.cc
In file included from /usr/include/gcc/darwin/4.0/c++/backward/iostream.h:31,
from /usr/include/FlexLexer.h:50,
from lex.yy.cc:241:
/usr/include/gcc/darwin/4.0/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
lex.yy.cc: In member function `virtual int yyFlexLexer::yylex()':
lex.yy.cc:633: warning: label 'find_rule' defined but not used
lex.yy.cc: At global scope:
lex.yy.ccwarning: 'void* yy_flex_realloc(void*, yy_size_t)' defined but not used
g++ `pkg-config sdl --cflags` -O3 -funroll-loops -Wall -c -o assembler.o assembler.cc
In file included from /usr/include/gcc/darwin/4.0/c++/backward/iostream.h:31,
from /usr/include/FlexLexer.h:50,
from assembler.cc:28:
/usr/include/gcc/darwin/4.0/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
g++ trit.o tryte.o machine.o interrupt.o assembler.o parser.tab.o lex.yy.o memory.o agdp.o -o tg_assembler `pkg-config sdl --libs` -lfl -lz
Speed of virtual machine on 1.67 GHz PowerPC G4 under MacOS X 10.4:
Code: Select all
Initial benchmark: 886.832 thousand operations per second
Spread: 136.945