Author |
Message |
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22716 Location: Silicon Valley
|
After installation from sources m4-1.4.13 (with symlink /usr/local/bin/gm4 to m4) and bison-2.4.1 Tunguska was compiled: | | | | Quote: 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.cc:1613: warning: '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
| | | | |
it's working, but very slow (in the beginning 10-15 seconds per frame, then about 5 seconds per frame).
Speed of virtual machine on 1.67 GHz PowerPC G4 under MacOS X 10.4:
|
05 Sep 2009 02:04 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
As you have no doubt noticed, not a lot has happened with this project for ages (well, in fact, nothing at all has happened). I've been quite busy with other projects and my physics studies, and now on top of that I'm working on my master's thesis, which is eating a lot of time, so things will likely remain slow at least until my thesis is finished (in January).
Just figured I'd make some sort of official statement, so you guys don't think I've been run over by a bus or something.
|
08 Nov 2010 02:11 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22716 Location: Silicon Valley
|
Good news!
By the way, any ideas as to do Tunguska faster on Mac?
|
08 Nov 2010 16:57 |
|
|
Mac Buster
Retired
Joined: 03 Aug 2003 22:37 Posts: 1474 Location: Moscow
|
I am happy to know you're not dropped the project Will wait for new Tunguska releases.
|
09 Nov 2010 01:36 |
|
|
Mac Buster
Retired
Joined: 03 Aug 2003 22:37 Posts: 1474 Location: Moscow
|
It is fairly easy - take a faster Mac
|
09 Nov 2010 01:39 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22716 Location: Silicon Valley
|
My Mac is relatively fast - it's PowerPC G4 1.67 GHz...
|
09 Nov 2010 06:21 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
The work on my thesis sort took longer than I had planned. It's now mostly done, and the classes I'm taking now have been quite demanding, but hopefully I'll be able to put real work into Tunguska towards the end of this month.
It's very frustrating to be away from programming for this long. I have so many ideas, and my programming fingers are itching to get to work.
I'm doing some small performance testing work on various algorithms at the moment, to get hard figures on which method of doing ternary logic in host-native integers is the best.
As for mac performance, I honestly have no idea.
|
04 Mar 2011 11:57 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
The people that were hosting the tunguska website has had a disk crash, so it's down for the time being. Apparently they're working on restoring stuff from the backups now.
Just figured I'd let you guys know I haven't disowned the page or anything.
|
12 Apr 2011 05:39 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
I've moved the tunguska website to sourceforge hosting, as my acc.umu.se account will soon expire, as well as updated the freshmeat page to reflect this change.
I also patched some bit rot on the CVS so that it compiles with newer GCC versions.
|
24 Jun 2011 16:43 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22716 Location: Silicon Valley
|
|
24 Jun 2011 22:56 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
Hm, I'm not quite sure what to do about that one, as it's code that has been generated by flex and not by me. Could be that slackware is using versions of gcc and flex that don't play nice together.
My flex version defines EOF as -1, I suppose you could compile with -DEOF=-1 as a temporary fix.
|
24 Jun 2011 23:28 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22716 Location: Silicon Valley
|
|
25 Jun 2011 09:30 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
I have the same flex version, bison 2.4.1 and gcc 4.5.2.
What's your GCC version?
Also, try adding
just above "extern YYSTYPE yylval" in scanner.l, see if that works (it's a bit of an ugly fix, but my version doesn't complain about it and builds a working assembler)
|
26 Jun 2011 04:33 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22716 Location: Silicon Valley
|
yes, it's working
P.S. my gcc is 4.5.2
|
26 Jun 2011 16:54 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
I pushed some minor changes to the CVS. Mostly moving a bunch of small objects off the heap to the stack, where good programming practice dictates they belong. Shouldn't affect performance or functionality.
|
18 Aug 2011 11:54 |
|
|