Re: [Tinycc-devel] RFC: Colored warnings/errors ?

2024-05-12 Thread Charles Lohr
For me, the biggest draw that keeps me coming back and using TCC is that the code is simplified with only what is needed to compile the code. It's specifically the _lack_ of features that makes TCC a daily driver for me on the unusual platforms/uses I use it with. I know it may sound silly, but I

Re: [Tinycc-devel] Waiting for release...

2024-03-26 Thread Charles Lohr
I have been maintaining this https://github.com/cnlohr/tinycc-win64-installer and get 3-4 downloads/week. Whenever we have a new release, I do plan to build an installer for Windows for it as well. Did I miss a release? On Tue, Mar 26, 2024 at 8:34 AM John Mastronardo via Tinycc-devel wrote: >

Re: [Tinycc-devel] VFS support?

2023-08-14 Thread Charles Lohr
That seems like a heavier hammer than just keeping everything the same but overriding the symbols / wrapping them for your project? Why not just keep the symbol names as they are, but wrap them separately, using compiler flags/#define's? I haven't wrapped stuff in a while so maybe I'm missing som

Re: [Tinycc-devel] C23 embed path

2023-06-07 Thread Charles Lohr
TIL it's not always "-I" ... I feel like it should always be -I. On Tue, Jun 6, 2023 at 7:41 AM certanan via Tinycc-devel < tinycc-devel@nongnu.org> wrote: > Hello, everyone. > > I have finally got around to having a shot at implementing C23's "#embed" > directive. However, I am struggling to thi

Re: [Tinycc-devel] Calling for Release 0.10.0

2023-05-31 Thread Charles Lohr
I have used TCC in many personal and professional projects, and it has been invaluable in my professional career as well in my hobbies. Not a week goes by without half a dozen invocations of TinyCC in my life. Individuals I introduce to my build environment come away pleasantly surprised that for

Re: [Tinycc-devel] Is anyone on the C standards committee?

2023-01-25 Thread Charles Lohr
(The above are all language-based features; there's library features >> too such as the new stdbit.h header, improved time bases in time.h, the new >> stdckdint.h header for overflow/underflow-checked arithmetic, and more.) >> >> I'd like to know what thi

Re: [Tinycc-devel] Is anyone on the C standards committee?

2023-01-25 Thread Charles Lohr
Sorry, I inadvertently replied to this thread instead of the main thread. I will move my reply there. On Wed, Jan 25, 2023 at 2:53 PM Charles Lohr wrote: > My suggestion is if possible someone from our group/view should try to > apply whatever means we can to keep C clean, clear and sim

Re: [Tinycc-devel] Is anyone on the C standards committee?

2023-01-25 Thread Charles Lohr
My suggestion is if possible someone from our group/view should try to apply whatever means we can to keep C clean, clear and simple to implement the standard, allowing the people who feel the drive to "improve things" to direct that at a different language standard, or an offshoot of some sort. I

[Tinycc-devel] Is anyone on the C standards committee?

2023-01-25 Thread Charles Lohr
I was just wondering if anyone from TCC on the standards committee? I just really hope for a compiler as popular as TCC, there's someone there defending the interests of all the not-GCC, not-clang compilers, where difficulty of feature addition is a paramount concern. I use TCC as my daily driver

[Tinycc-devel] Windows distribution/installer

2022-11-02 Thread Charles Lohr
A few days ago, I started experimenting with just using NSIS to package up TinyCC as an installer for Windows, which worked out well. It basically: * Includes TinyCC Win-64 0.9.27 (Boy would a new release be nice!) * Includes Win API Headers Full * Optionally adds TCC (wherever it is installed)

Re: [Tinycc-devel] [PATCH 09/11] riscv64-asm: Implement asm_parse_regvar

2021-04-16 Thread Charles Lohr
Milosavljevic wrote: > Hi, > > On Mon, 12 Apr 2021 12:36:06 -0400 > Charles Lohr wrote: > > > Does anyone know the status of these risc-v commits? I'm going to soon > need > > the risc-v portion of tcc. > > As usual, I've posted those patches to the mailin

Re: [Tinycc-devel] [PATCH 09/11] riscv64-asm: Implement asm_parse_regvar

2021-04-12 Thread Charles Lohr
Does anyone know the status of these risc-v commits? I'm going to soon need the risc-v portion of tcc. On Wed, Apr 7, 2021, 09:06 Danny Milosavljevic wrote: > --- > riscv64-asm.c | 11 +-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/riscv64-asm.c b/riscv64-asm.c >

[Tinycc-devel] Anyone else working with the RISC-V port?

2020-12-19 Thread Charles Lohr
I am interested in doing a project using TinyCC, a web-based IDE for the ESP32-C3, a wifi-enabled microcontroller. https://github.com/cnlohr/espwebc3/blob/main/README.md I spent a while trying to decipher riscv-gen, and it's actually not that bad. Very much inline with the cryptic TinyCC (ok, bit

Re: [Tinycc-devel] WebAssembly backend

2020-02-14 Thread Charles Lohr
I tried creating a TinyCC target for asm.js and never really found a clean way to do it because of lack of goto. My goal was to build an in-browser compiler for cheap wifi microcontrollers, the ESP8266 which could let you write code, compile it and run it without the need for a development system

[Tinycc-devel] I'm making a TinyCC-Based VR Game Engine

2020-02-08 Thread Charles Lohr
I've been spending the last 8 months or so working on a weird game engine that revolves around TCC. I don't have any specific requests, or anything else but wanted to thank everyone here for all the work you've put into TCC. TCC's portability, size and speed has allowed me to explore and push the

Re: [Tinycc-devel] Git repository is not responding

2020-02-02 Thread Charles Lohr
I have personally also been frustrated by the TCC repo's reliability as well. I haven't done a deep clone of TinyCC in a while, so all my stuff is either out-of-date or shallow. Does anyone know who owns the github mirror? Possibly they could push a more up-to-date mob to it? https://github.com/T

Re: [Tinycc-devel] make tcc reentrant

2019-12-06 Thread Charles Lohr
Is there a reason you don't just compile tcc in tcc to make the tcc instance that is basically then reentrant? I've used this trick a while on things other than tcc, turning all global or static variables in any C program into an object that can be created or deleted or duplicated in a process spa

Re: [Tinycc-devel] Floating/Double issue on arm64 in mob

2019-11-08 Thread Charles Lohr
; { > > -int f = vtop[0].type.t; > > +int f = vtop[0].type.t & VT_BTYPE; > > + > > assert(t == VT_FLOAT || t == VT_DOUBLE || t == VT_LDOUBLE); > > assert(f == VT_FLOAT || f == VT_DOUBLE || f == VT_LDOUBLE); > > if (t == f) > > > > > >

[Tinycc-devel] Floating/Double issue on arm64 in mob

2019-11-04 Thread Charles Lohr
Using default settings, in hash 96f1fb1, current mob head, I am having an internal compiler assert on arm64. The following program causes an assert. There are other cases but the assert remains the same. float fd; int main() { if( fd < 5.5 ) return 1; return 0; } root@omitted:~/

[Tinycc-devel] repo.or.cz down?

2019-09-28 Thread Charles Lohr
Anyone know how long the outage on https://repo.or.cz/w/tinycc is going to be? I never realized how dependent I was on remote git trees being up. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] RISC-V support

2019-09-03 Thread Charles Lohr
I echo Christian Jullien's request for adding to the RELICENSING file. It's of value to me that it would work out to be clearly MIT licensed. On Tue, Sep 3, 2019 at 1:06 AM Christian Jullien wrote: > Many thanks for your explanation. If it's the case, I suffices. > > C. > > -Original Message

[Tinycc-devel] Thread-local storage?

2019-09-02 Thread Charles Lohr
I've been trying to find a way out of this for a bit now. I'd like to carry over some optimizations to a TCC host compile, but, I'm stuck with using pthread_key_create and friends. This is a bit of an annoying solution and not optimal... And potentially even rougher on Windows. It looks like all

Re: [Tinycc-devel] A wish for 2018? C->JVM compiler

2018-03-10 Thread Charles Lohr
This really interests me as well. I still am working on my tinycc-to-javascript environment, and to support "goto" was quite awkward and required wrapping all code in functions inside "switch" statements. I was hoping webassembly would accept the request to have a "goto" but as far as I understan

[Tinycc-devel] Coding standards

2017-10-05 Thread Charles Lohr
Just wondering, is there any codified "this is our preferred coding standards" regarding curly-brace, tabs/spaces, commets, etc.? I'm normally a: if( ( condition ) || ( 3 & 5 ) ) { [TAB]Stuff } else { [TAB]Other stuff //Comment } kinda guy, but seems like this is inconsistently in direct oppositi

[Tinycc-devel] Basic register usage

2017-09-26 Thread Charles Lohr
In trying to write a target for TinyCC, I've noticed the rest of the engine seems to want to do a fair bit of register/stack management. This is fine and dandy, but I am having a lot of difficulty understanding where the line between my target and the TCC register functions such as get_reg, gv, gv

[Tinycc-devel] Resources/questions for porting?

2017-09-25 Thread Charles Lohr
I am interested in making a full in-browser IDE for the ESP8266. Or, just making a compiler that's reasonable to install on a variety of systems. Right now, it's a complete mess. To do this, I need to port TCC to xtensa specifically lx6 with no floating point. I've started down this path but hav

Re: [Tinycc-devel] Possible release schedule?

2017-05-05 Thread Charles Lohr
or the new warning regarding > __declspec(dllimport/export)! Very much appreciated. Do any of you live > in Australia? I'll send you some PREFERRED_DELICACY. ) > > > > Charles Lohr wrote: > > I've been lurking here and there, but haven't seen any rabbling abo

[Tinycc-devel] Possible release schedule?

2017-05-05 Thread Charles Lohr
I've been lurking here and there, but haven't seen any rabbling about a new release? It's been several years and I really like the current mainline for my projects. I'm hoping to use TCC in a rash of upcoming projects. Any word if I might be able to direct people to 0.9.27? The latest I can see

[Tinycc-devel] Proper use of math.h and libm in windows builds

2017-03-28 Thread Charles Lohr
[I sent this earlier but it doesn't seem to have been accepted to the list, but it was before I was properly signed up] I've found only small bits and pieces of information about how to do this strewn across the internet. Hopefully this message will have enough keywords in it that others will fin

[Tinycc-devel] Proper use of libm / math.h in Win32 builds

2017-03-15 Thread Charles Lohr
I've found only small bits and pieces of information about how to do this strewn across the internet. Hopefully this message will have enough keywords in it that others will find it... and hopefully someone on the list will be able to help. I've tried pulling some files from the current developme