LCC for the Gigatron. Take two.

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
denjhang
Posts: 50
Joined: 02 May 2021, 01:25
Location: yuenan
Contact:

Re: LCC for the Gigatron. Take two.

Post by denjhang »

I wrote a simple music engine, but found a lot of weirdness. In my program, it seems to be difficult to get music from four channels at the same time, which usually gets stuck. This phenomenon made me have to use each channel staggered.
Currently I'm happy with step11.c, but also confused with the other files.
Attachments
step11.c
(2.37 KiB) Downloaded 37 times
step10.c
(2.27 KiB) Downloaded 30 times
step7.c
(1.99 KiB) Downloaded 30 times
step6.c
(2.51 KiB) Downloaded 31 times
step5.c
(1.97 KiB) Downloaded 29 times
step4.c
(1.96 KiB) Downloaded 31 times
denjhang
Posts: 50
Joined: 02 May 2021, 01:25
Location: yuenan
Contact:

Re: LCC for the Gigatron. Take two.

Post by denjhang »

I'm trying to compile GLCC using cygwin, and while it compiles without any errors, the GLCC I compile doesn't have the correct functionality at all. It looks problematic in every way.
Attachments
glcc cygwin.zip
(3.76 MiB) Downloaded 26 times
lb3361
Posts: 188
Joined: 17 Feb 2021, 23:07

Re: LCC for the Gigatron. Take two.

Post by lb3361 »

Please explain what you mean by "doesn't have the correct functionality" and "problematic in every way".

Also try the precompiled version from viewtopic.php?t=313&start=20#p2484
Make sure to read the instructions.
denjhang
Posts: 50
Joined: 02 May 2021, 01:25
Location: yuenan
Contact:

Re: LCC for the Gigatron. Take two.

Post by denjhang »

lb3361 wrote: 19 Mar 2022, 19:08 Please explain what you mean by "doesn't have the correct functionality" and "problematic in every way".

Also try the precompiled version from viewtopic.php?t=313&start=20#p2484
Make sure to read the instructions.
The precompiled version is fine, but I wish I could compile one myself.
There are a few exceptions I'm talking about.
1.glcc -V gives me back unknown version
2. When I compile a header file that includes gigatron/sys.h, the glcc I compile directly reports an error, just like ordinary lcc, which cannot use gigatron's unique inclusion.
However I use the precompiled version of glcc without any problems.
lb3361
Posts: 188
Joined: 17 Feb 2021, 23:07

Re: LCC for the Gigatron. Take two.

Post by lb3361 »

  • The lack of glcc -V probably means that you did not have the git command in the path when you compiled glcc.
  • I noticed that one of the c files you posted had non-ascii blank characters. Maybe your sys.h has the same problem?
For compiling under Windows. see the section "Windows notes" of the README (https://github.com/lb3361/gigatron-lcc/ ... /README.md). To compile under cygwin. You should also install git under cygwin to get the -V command. The precompiled version was created with the GitForWindowsSDK method.
lb3361
Posts: 188
Joined: 17 Feb 2021, 23:07

Re: LCC for the Gigatron. Take two.

Post by lb3361 »

Release 1.5 of GLCC.

Just because this has been a long time and because a lot of internal things have changed.
  • he page zero usage has been changed to increase compatibility with at67's' forthcoming work. The runtime support for longs and floats now works entirely in area 0xc0-0xcf using either the vCPU emulation or using new instructions present in AT67's forthcoming ROM. The register file now lives in 0x50-0x7f by default but can be relocated elsewhere with option --register-base=xxxx.
  • The code generator supports a newer version of AT67's ROM in which native support for long integers is also used to speed up floating point emulation. As long as AT67's ROM is not finalized, things are not final there.
  • There is a new map, --map=512k, for the two or three 512k Gigatron in existence (doc with option --info). Long integers are now aligned on 4 byte boundaries instead of 2 bytes boundaries.
  • There is support to constrain the placement in memory of a piece of code (PLACE directive in glink).
  • And a number of library functions have been improved.
As usual, the source code can be obtained with

Code: Select all

git clone https://github.com/lb3361/gigatron-lcc.git  
For convenience, a precompiled Windows version is attached to this message.
Attachments
glcc-1.5.zip
(1.47 MiB) Downloaded 11 times
veekoo
Posts: 70
Joined: 07 Jun 2021, 07:07

Re: LCC for the Gigatron. Take two.

Post by veekoo »

Great contribution to Gigatron TTL society to make this GLCC available! Floating point mentioned. MIght my fractals with floating point calculation get any faster?
lb3361
Posts: 188
Joined: 17 Feb 2021, 23:07

Re: LCC for the Gigatron. Take two.

Post by lb3361 »

veekoo wrote: 21 May 2022, 12:07 Great contribution to Gigatron TTL society to make this GLCC available! Floating point mentioned. MIght my fractals with floating point calculation get any faster?

Not until we get at67's rom.
Maybe twice faster but not more.
Post Reply