Author |
Message |
joanlluch
Joined: Fri Mar 22, 2019 8:03 am Posts: 328 Location: Girona-Catalonia
|
Hi Roelh, I understand what you do (I suppose). I didn't know you could connect a screen directly to a RPi, so that explains a lot. It's just that I completely and purposely skipped the dark ages of computer software history, i.e the times from the mid 90' to year 2010 where everything was required to be web based, and only web-anything programmers had a paid job. I never accepted working on such a weirdness. Thankfully, the Renaissance eventually came with the invention of the smart phones and the renewed need for 'native' apps. Suddenly, 'native' code programmers (or at least on the iOS platform) could have a proper job, which was a huge relief. (But that's totally off-topic, and based on my own particular vision, I guess). The corollary, is that I never developed any skills on web-based-anything, and web based stuff still feels weird and alien to me. That's why I kind of get amazed by your choice of programming languages for something like an assembler or a compiler. However, I fully acknowledge the effectiveness of a web based interface to show your work, for example your online risc relay computer simulator is really an excellent contribution for others to learn.
|
Tue Jan 28, 2020 10:21 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
roelh
Joined: Mon Oct 07, 2019 1:26 pm Posts: 47
|
Hi all, my C compiler is now integrated into the Kobold K2 online Javascript assembler/simulator. On a single browser page you can now compile, assemble and simulate the C code, and download a file to program into the Kobold. See it live at http://www.enscope.nl/simas_kobold2/ ! The page loads a prime-number generator as default program. You only have to press the RUN button to start it. However, the simulator is quite slow because it simulates almost at the gate level.
|
Wed Mar 11, 2020 10:16 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
robfinch
Joined: Sat Feb 02, 2013 9:40 am Posts: 2095 Location: Canada
|
Is the C compiler JavaScript too?
_________________Robert Finch http://www.finitron.ca
|
Thu Mar 12, 2020 4:27 am |
|
![](./styles/serenity/theme/images/spacer.gif) |
roelh
Joined: Mon Oct 07, 2019 1:26 pm Posts: 47
|
Hi Rob, some more details of the C compiler are here: http://anycpu.org/forum/viewtopic.php?f=8&t=447. The compiler is an odd beast. The scanner and parser run on the server and are written in PHP, it is a project that I started several years ago, but only now I can use its results. The parser output (almost target independent) is in a JSON format (displayed in the lower right part of the screen). The code generator is written in Javascript (started 3 months ago) and takes the JSON as input. It does several optimizations and generates assembler code. I will publish the compiler parts as soon as they reach a more stable state.
|
Thu Mar 12, 2020 8:13 am |
|
![](./styles/serenity/theme/images/spacer.gif) |
robfinch
Joined: Sat Feb 02, 2013 9:40 am Posts: 2095 Location: Canada
|
I'm a little curious, why run the compiler from the web? It seems like a complex way to do things.
_________________Robert Finch http://www.finitron.ca
|
Sat Mar 14, 2020 4:16 am |
|
![](./styles/serenity/theme/images/spacer.gif) |
roelh
Joined: Mon Oct 07, 2019 1:26 pm Posts: 47
|
My compiler project started several years ago in the period that I discovered that you could program a HTML server to generate webpages using the PHP language, and that PHP was actually a full featured programming language. I started a small compiler project in PHP just for fun, and every year the project got a bit bigger, but I never finished it. So now I had the opportunity get some results from all the hours that already went into that project.
But I agree that it is not the most logical choice.
|
Sat Mar 14, 2020 12:21 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
robfinch
Joined: Sat Feb 02, 2013 9:40 am Posts: 2095 Location: Canada
|
I think it’s a great idea. You have access to the compiler now from just about anywhere.
_________________Robert Finch http://www.finitron.ca
|
Sun Mar 15, 2020 2:44 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
roelh
Joined: Mon Oct 07, 2019 1:26 pm Posts: 47
|
Hi all, I have the cpu now running at 25MHz master clock, that is 6.25 MHz cpu clock. It has a 160 nS fetch and 160 nS exec cycle for each instruction. The web-based simulator runs the same hello-world and prime generator demo, compiled from C source: http://www.enscope.nl/simas_kobold2/. I just designed the 4-layer pcb for the video card: https://hackaday.io/project/172278-vga-video-generation-cardThe card will run from the same 25 MHz. It is intended to have 640*480, 32K colors, sprites and sound. I'm searching for a small and simple OS that has free C source code. Suggestions anyone ?
|
Sun Jun 14, 2020 6:59 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
BigEd
Joined: Wed Jan 09, 2013 6:54 pm Posts: 1783
|
roelh wrote: I'm searching for a small and simple OS that has free C source code. Suggestions anyone ? An interesting question indeed! I've posted a new thread for it:
|
Sun Jun 14, 2020 7:20 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
oldben
Joined: Mon Oct 07, 2019 2:41 am Posts: 593
|
Do you have a web page discription of the latest version of computer? Ben.
|
Sun Jun 14, 2020 7:41 pm |
|
![](./styles/serenity/theme/images/spacer.gif) |
roelh
Joined: Mon Oct 07, 2019 1:26 pm Posts: 47
|
Ben, the full description is here: https://hackaday.io/project/167605-kobold-k2-risc-ttl-computer. Most of the information is in the logs. Schematic is in the file section.
|
Sun Jun 14, 2020 7:47 pm |
|
|