Search found 360 matches

by lb3361
24 Mar 2022, 13:10
Forum: Hardware and software hacking
Topic: Lies, Damned Lies and Benchmarks.
Replies: 27
Views: 5923

Re: Lies, Damned Lies and Benchmarks.

In files https://github.com/lb3361/gigatron-lcc/blob/master/stuff/sieve/sieve0.c. sieve1.c and sieve2.c, where is the mincprintf() function? The Makefile compiles with option "-Dprintf=mincprintf" which is equivalent to adding "#define printf mincprintf" at the top of the file. ...
by lb3361
23 Mar 2022, 21:29
Forum: Hardware and software hacking
Topic: Seeking RAM for upgrade (US)
Replies: 9
Views: 1888

Re: Seeking RAM for upgrade (US)

You can get a 128KB one and wire the extra address pins together. https://www.digikey.com/en/products/detail/alliance-memory-inc/AS6C1008-55PCN/4234576 Or you can bite the bullet and build a 128KB expansion which also gives you SPI port usable with a SD card. (see https://forum.gigatron.io/viewtopic...
by lb3361
23 Mar 2022, 03:08
Forum: Hardware and software hacking
Topic: Lies, Damned Lies and Benchmarks.
Replies: 27
Views: 5923

Re: Lies, Damned Lies and Benchmarks.

Because I want GLCC to follow ANSI C89, I have to deal with all the formatting complications of function printf. All these rarely used features cost over 2KB in code size. And stdio adds another 2KB code. I already had a function cprintf() which bypasses stdio but still implements all the standard f...
by lb3361
21 Mar 2022, 16:03
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 45384

Re: LCC for the Gigatron. Take two.

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 ...
by lb3361
21 Mar 2022, 08:45
Forum: Hardware and software hacking
Topic: Lies, Damned Lies and Benchmarks.
Replies: 27
Views: 5923

Re: Lies, Damned Lies and Benchmarks.

The flashing pixel means that main() has returned. The horizontal position of the pixel is the return value. Both programs print the prime count when they're finished. Sieve2 also prints a time (but sieve1 does not because it is the unaltered official c code : no timer.) Yes the Gigatron 512k runs v...
by lb3361
21 Mar 2022, 03:38
Forum: Hardware and software hacking
Topic: Lies, Damned Lies and Benchmarks.
Replies: 27
Views: 5923

Re: Lies, Damned Lies and Benchmarks.

This is a very cool idea! Here are a couple more benchmark lines. These times are for the Gigatron 512k because I was too lazy to remove the board. Multiply by about 1.3 to give approximate execution times for a normal Gigatron. You can also run them yourself but you need at least 64K RAM and ROMv5a...
by lb3361
19 Mar 2022, 19:08
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 45384

Re: LCC for the Gigatron. Take two.

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

Also try the precompiled version from https://forum.gigatron.io/viewtopic.php ... t=20#p2484
Make sure to read the instructions.
by lb3361
19 Mar 2022, 01:17
Forum: Hardware and software hacking
Topic: Explore the Gigatron music engine, using GLCC
Replies: 22
Views: 3335

Re: Explore the Gigatron music engine, using GLCC

I guess one could also try rudimentary enveloppe control. One could also write the waveforms on the fly, just in time, but there wouldn't be much cpu time left for anything else. At67 has really spent a lot of time working on sound. He probably has thought of all this already...
by lb3361
18 Mar 2022, 13:44
Forum: Hardware and software hacking
Topic: Explore the Gigatron music engine, using GLCC
Replies: 22
Views: 3335

Re: Explore the Gigatron music engine, using GLCC

First observation: the Gigatron does not hang, but the program loops. You can see that because the blinkenlights keep going . Second observation: this is not a GLCC bug but a logic error in the program. In the case of step5.c, the bug is that note_index is not incremented by the number of played rec...
by lb3361
16 Mar 2022, 21:46
Forum: Hardware and software hacking
Topic: Explore the Gigatron music engine, using GLCC
Replies: 22
Views: 3335

Re: Explore the Gigatron music engine, using GLCC

I am interested to know about GLCC bugs. Best is to give me a small program that shows the bug. Also the glcc version as printed by "glcc -V".