v15 & new recompiler update

Discussion of development and patch submission.
User avatar
SarahWalker
Site Admin
Posts: 1657
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker » Mon 01 Apr, 2019 8:07 pm

tk421 wrote:
Mon 01 Apr, 2019 6:59 pm
I am sure v15 will be a big success. I am not sure which kind of CPU speed I would need to run a K6-2 cpu, but that would be really interesting to know.
Lots. On an i7-7700k @ 4.4 GHz I can generally run most non-3dfx things at K6-2/300, but dips below that are not uncommon. A few select games/demos can run at 400-500 MHz, but those are exceptions to the general rule.

tk421
Posts: 43
Joined: Sat 18 Jun, 2016 6:57 am

Re: v15 & new recompiler update

Post by tk421 » Sat 06 Apr, 2019 8:23 pm

Thank you for your reply. This is good news indeed for PCem.

User avatar
SarahWalker
Site Admin
Posts: 1657
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker » Wed 24 Apr, 2019 8:28 pm

New recompiler is in as of rev 1417. While there has been a lot of testing already done, there are bound to be issues here and there. Most stuff should be working though.

szadycbr
Posts: 264
Joined: Mon 21 Nov, 2016 6:23 pm

Re: v15 & new recompiler update

Post by szadycbr » Wed 24 Apr, 2019 9:58 pm

Hi Everyone, i get this error : codegen_x86-64.c:16:32: fatal error: codegen_ops_x86-64.h: No such file or directory . and yeah the codegen_ops_x86-64.h is missing, is it on my side? or it is missing everywhere ?

User avatar
leilei
Posts: 633
Joined: Fri 25 Apr, 2014 4:47 pm

Re: v15 & new recompiler update

Post by leilei » Wed 24 Apr, 2019 10:11 pm

The makefile does have an absolute path to a mingw install for Wx. other than that, it compiles fine (for gcc 4.7.2 win32 anyway)

jznomoney
Posts: 87
Joined: Sat 06 Dec, 2014 9:11 pm

Re: v15 & new recompiler update

Post by jznomoney » Wed 24 Apr, 2019 10:14 pm

I get this:
pcem-keyboard_pcjr.o:keyboard_pcjr.c:(.text+0x3fd): undefined reference to `cassette_set_motor'
pcem-keyboard_pcjr.o:keyboard_pcjr.c:(.text+0x561): undefined reference to `cassette_input'
pcem-keyboard_xt.o:keyboard_xt.c:(.text+0x37f): undefined reference to `cassette_set_motor'
pcem-keyboard_xt.o:keyboard_xt.c:(.text+0x4f6): undefined reference to `cassette_input'
pcem-model.o:model.c:(.text+0xcb): undefined reference to `cassette_device'
pcem-model.o:model.c:(.text+0x177): undefined reference to `cassette_device'
pcem-model.o:model.c:(.text+0x527): undefined reference to `cassette_device'
pcem-model.o:model.c:(.text+0xa27): undefined reference to `cassette_device'
pcem-model.o:model.c:(.text+0x152a): undefined reference to `acc2168_init'
pcem-model.o:model.c:(.text+0x1eb6): undefined reference to `i430hx_init'
pcem-model.o:model.c:(.text+0x1532): undefined reference to `acc3221_init'
pcem-wx-sdl2.o:wx-sdl2.c:(.text+0x20d8): undefined reference to `cassettefn'
pcem-wx-sdl2.o:wx-sdl2.c:(.text+0x20f5): undefined reference to `cassette_eject'
pcem-wx-sdl2.o:wx-sdl2.c:(.text+0x2101): undefined reference to `cassette_load'
pcem-wx-sdl2.o:wx-sdl2.c:(.text+0x21f1): undefined reference to `cassette_eject'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [Makefile:1122: pcem.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/msys64/home/snap8/pcem/src'
mingw32-make: *** [Makefile:364: all-recursive] Error 1

szadycbr
Posts: 264
Joined: Mon 21 Nov, 2016 6:23 pm

Re: v15 & new recompiler update

Post by szadycbr » Wed 24 Apr, 2019 10:18 pm

Thanks leilei, and jznomoney , with normal procedure i get this also, exactely :(

shermanp
Posts: 120
Joined: Sat 18 Feb, 2017 2:09 am

Re: v15 & new recompiler update

Post by shermanp » Wed 24 Apr, 2019 10:19 pm

leilei wrote:
Wed 24 Apr, 2019 10:11 pm
The makefile does have an absolute path to a mingw install for Wx. other than that, it compiles fine (for gcc 4.7.2 win32 anyway)
It always has. Thankfully you can override make variables on the command line, so I've got a batch file that points to the location of my WX install.

I started to try and make a fancy pants all-in-one cross platform Makefile, but have put it to one side in favour of finishing my VHD work. I've had real difficulty figuring out how to automatically locate WX on Windows, and I'm not even sure it's possible. Unlike Linux, you can't just call wx-config and call it a day. Unless you're using MSYS2 of course.

shermanp
Posts: 120
Joined: Sat 18 Feb, 2017 2:09 am

Re: v15 & new recompiler update

Post by shermanp » Wed 24 Apr, 2019 10:22 pm

BTW, compiled for me fine on MinGW-w64 with GCC 7.2

It looks like Sarah added some makefile fixes not too long ago at commit 51e4eb5, is that the problem?

jznomoney
Posts: 87
Joined: Sat 06 Dec, 2014 9:11 pm

Re: v15 & new recompiler update

Post by jznomoney » Wed 24 Apr, 2019 10:25 pm

I have the makefile fixes commit. I deleted the whole folder and pulled it again and still doesn't work.

szadycbr
Posts: 264
Joined: Mon 21 Nov, 2016 6:23 pm

Re: v15 & new recompiler update

Post by szadycbr » Wed 24 Apr, 2019 10:29 pm

Ps. leilei , my gcc is 4.6.3 from debian stretch repos, is it not good enough?
EDIT: also with enable release i get this : .o `test -f 'codegen.c' || echo './'`codegen.c
mv -f .deps/pcem-codegen.Tpo .deps/pcem-codegen.Po
make[1]: *** No rule to make target 'codegen_backend.c', needed by 'pcem-codegen_backend.o'. Stop. :( and codegen_backend.c is missing :(

User avatar
leilei
Posts: 633
Joined: Fri 25 Apr, 2014 4:47 pm

Re: v15 & new recompiler update

Post by leilei » Wed 24 Apr, 2019 10:40 pm

Those makefiles probably weren't updated as codegen_backend.c is now codegen_block.c

jznomoney
Posts: 87
Joined: Sat 06 Dec, 2014 9:11 pm

Re: v15 & new recompiler update

Post by jznomoney » Wed 24 Apr, 2019 10:43 pm

I figured out my issues. In the src folder in Makefile.am I was missing cassette.c acc2168.c i430hx.c and acc3221.c under pcem_SOURCES =

darksabre76
Posts: 57
Joined: Tue 12 Sep, 2017 4:33 am
Location: Seattle, WA, USA
Contact:

Re: v15 & new recompiler update

Post by darksabre76 » Wed 24 Apr, 2019 11:43 pm

Here's an updated Makefile.am for those who use it (I have it split weirdly because I was tracking down missing files).
Attachments
Makefile.am.7z
(2.42 KiB) Downloaded 13 times

darksabre76
Posts: 57
Joined: Tue 12 Sep, 2017 4:33 am
Location: Seattle, WA, USA
Contact:

Re: v15 & new recompiler update

Post by darksabre76 » Thu 25 Apr, 2019 12:42 am

After this newest stuff, my crappy computer can idle in Win98 at 90% instead of the 50-60% that it was pulling before. LEGO Island also runs at >85%, before it would stutter and sputter along around 50% or less. Kudos :)

User avatar
SarahWalker
Site Admin
Posts: 1657
Joined: Thu 24 Apr, 2014 4:18 pm

Re: v15 & new recompiler update

Post by SarahWalker » Thu 25 Apr, 2019 7:18 am

Makefile.am fixed in rev 1418. Sorry about that, it got broken at some point when merging the regular and dev branches together.

gladstone
Posts: 14
Joined: Wed 19 Jul, 2017 11:44 am

Re: v15 & new recompiler update

Post by gladstone » Thu 25 Apr, 2019 4:25 pm

Hello! Many thanks SarahWalker

I can run PCem under Chromebook (aarch64) with Crostini.
Some bugs with gui and gtk-errors. I tried MS-DOS and Keyboard works :)

szadycbr
Posts: 264
Joined: Mon 21 Nov, 2016 6:23 pm

Re: v15 & new recompiler update

Post by szadycbr » Thu 25 Apr, 2019 5:17 pm

hey , gladstone , what compiling tools and what version do you have on this chromebook? did you try 430vx board?
EDIT: do you have intel cpu i your chromebook? the chromebook debian 9 version must be bit different. but chrome was talking about it being ready for developers. but your is probably arm64 cpu.

User avatar
leilei
Posts: 633
Joined: Fri 25 Apr, 2014 4:47 pm

Re: v15 & new recompiler update

Post by leilei » Thu 25 Apr, 2019 7:36 pm

It does work on a Pi3b at least. I can 100% a 486SX16 on most things but there's a big VC4 video output bottleneck in Raspbian...

darksabre76
Posts: 57
Joined: Tue 12 Sep, 2017 4:33 am
Location: Seattle, WA, USA
Contact:

Re: v15 & new recompiler update

Post by darksabre76 » Thu 25 Apr, 2019 9:29 pm

It's great to see the individual makefiles going away as the Automake script gets better and better :) Less things to worry about updating everytime.

sards3
Posts: 3
Joined: Tue 02 Apr, 2019 7:55 pm

Re: v15 & new recompiler update

Post by sards3 » Thu 25 Apr, 2019 11:01 pm

Great news. Sarah, I don't know if you have the time or inclination to do this, but I would be interested in reading a technical writeup about the new recompiler (high level design, how it differs from the old one, any interesting features, etc.)

gladstone
Posts: 14
Joined: Wed 19 Jul, 2017 11:44 am

Re: v15 & new recompiler update

Post by gladstone » Fri 26 Apr, 2019 6:05 am

leilei wrote:
Thu 25 Apr, 2019 7:36 pm
It does work on a Pi3b at least. I can 100% a 486SX16 on most things but there's a big VC4 video output bottleneck in Raspbian...
Did you try with the opengl driver (raspi-config)?

gladstone
Posts: 14
Joined: Wed 19 Jul, 2017 11:44 am

Re: v15 & new recompiler update

Post by gladstone » Fri 26 Apr, 2019 6:10 am

szadycbr wrote:
Thu 25 Apr, 2019 5:17 pm
hey , gladstone , what compiling tools and what version do you have on this chromebook? did you try 430vx board?
EDIT: do you have intel cpu i your chromebook? the chromebook debian 9 version must be bit different. but chrome was talking about it being ready for developers. but your is probably arm64 cpu.
Hi yes 430vx but it's slow :). I'm on a lenovo S330 it's arm based. I think crostini is debian 9 default. I'm running the default in stable channel.
I did install some pre req like build-essential, automake, libwxwidget, libsdl2 and some other. Then do hg clone | automake | configure | make.

szadycbr
Posts: 264
Joined: Mon 21 Nov, 2016 6:23 pm

Re: v15 & new recompiler update

Post by szadycbr » Fri 26 Apr, 2019 7:03 am

Hey gladstone, it is all different than x86_64 cpu, i thought your compiling procedure could help, but no :( anyway, it is fascinating that PCem runs on this cpu, you got better phones this days, so i guess year or two and we should see somehow Android port! thanks, and take care :)

Post Reply