4 ms·
Interesting, but what is the use case? What is the advantage of using the croc C compiler instead of e.g. TCC? I wasn't aware of Netsurf (https://www.netsurf-
by Rochus 3y ago
Interesting, but what is the use case?
What is the advantage of using the croc C compiler instead of e.g. TCC?
I wasn't aware of Netsurf (https://www.netsurf-browser.org/); https://www.netsurf-browser.org/); this is really amazing. But it seems to use Duktape as the JS engine, so performance might be an issue.
- helloimhonk 3y agocproc supports C11, tcc only goes up to c99. There is also something to be said for cproc using QBE which is slowly growing backends like risc-v etc which tcc doesnt support afaik.
- Rochus 3y agoOk, thanks, that makes sense. QBE looks interesting, but I'm missing 32 bit support. So currently I'm trying to reuse the TCC backend, which is far from trivial.
- helloimhonk 3y agoThere seems to have been a little progress on that recently, I saw someone working on a ppc 32bit port here: https://bsd.network/@tobhe/111756322928965195 https://bsd.network/@tobhe/111756322928965195 and I also saw somewhere someone working on a 68000 port, but I don't remember where. I'd like an arm 32bit port, which might be a bit easier with this ppc port as an example of 32bit qbe. It'd be nice to try run some hare programs on a gameboy advance :)
- Rochus 3y agoThanks for the hint. The x86 is likely more work and complicated than the existing AMD64. But meanwhile I made significant progress with my TCC backend; currently I design an intermediate representation and binary file format; will publish something on Github in a few weeks.
- cpach 3y agoAFAICT it could be useful for embedded devices.
- willy_k 3y agoTangential, but the trailing “/“ in the URL you gave seems to include the “);” in the hyperlink, giving a “Not Found” error. Working link: https://www.netsurf-browser.org https://www.netsurf-browser.org
- mike_hock 3y agohttps://www.netsurf-browser.org/documentation/ https://www.netsurf-browser.org/documentation/ Every single link on that page is dead. https://www.netsurf-browser.org/about/screenshots/ https://www.netsurf-browser.org/about/screenshots/ Judging by the screenshots, it can render BBC, its own website, and Wikipedia. Well, it might be able to render others, we just can't tell from the shots. But we can tell those three websites work with all sorts of different window decorations.
- Rochus 3y ago> Every single link on that page is dead Unfortunately, as it seems. On the start page they say "Last updated 2 January 2007". But version 3.11 was released on 28 Dec 2023.