[Tinycc-devel] -fsanitizer=address

2019-06-12 Thread Mike
Test: 09_do_while... Test: 10_pointer... ... p.s. "leak" sanitizer passed, "undefined" failed with huge number of errors and scope of another mail. (mike) ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] -fsanitizer=address

2019-06-13 Thread Mike
> > I have no idea what I am doing, but I applied the following patch and it > seems to have fixed the > dangling pointer, according to the tool I use (not ASan). Now much better, BTW what tool you use ? (mike) ___ Tinycc-devel mailing

[Tinycc-devel] TCC crashes on invalid structure reference

2007-11-05 Thread Mike
See the attached crash.c. Compile with "tcc crash.c" typedef struct _hello { int an_integer; } hello; void dosomething1(hello *s) { } #if 1 void dosomething2(hello_bad_undefined *s) { } #endif int main(void) { return 0; } ___ Tin

Re: [Tinycc-devel] TCC crashes on invalid structure reference

2007-11-06 Thread Mike
LIB, etc.. I put crash.c into "tcc-0.9.23", then create a command window, CD to "tcc-0.9.23". Then, finally run "tcc crash.c" and I get the generic program crash window. After looking in the event log, I find nothing added. Marc Andre Tanner wrote: Hi, On

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Mike
>>> printf("%d\n",sizeof(arr)[0]); // ok, but why? Why should that be valid syntax? Is C99 really weird or what? (its a immediate value being used in place of a pointer.) -Mike Marc Andre Tanner wrote: On Wed, Nov 14, 2007 at 12:39:18AM +0100, grischka wrote: Could a C gu

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Mike
"(arr)[0]" would be valid yes. But "40[0]" should be invalid, right? Chris Lattner wrote: On Nov 14, 2007, at 5:18 PM, Mike wrote: >>> printf("%d\n",sizeof(arr)[0]); // ok, but why? Why should that be valid syntax? Is C99 really weird or what? (its a

Re: [Tinycc-devel] Strange sizeof construct

2007-11-22 Thread Mike
Right. You said "[] can be applied to any pointer." That sounds right. What's this a few emails ago with [] being applied to immediate values in C99, like this 6[4] Fred Weigel wrote: Marc sizeof is an operator arr evaluates to the base of the array. [] is an operator. since arr is the

Re: [Tinycc-devel] Using resource files with tcc. How do I do that?

2007-11-23 Thread Mike
Doesn't microsoft's link.exe expect object code in the OBJ file format? http://en.wikipedia.org/wiki/Object_code http://en.wikipedia.org/wiki/Relocatable_Object_Module_Format KHMan wrote: Knut Flock wrote: Could you, or someone else, review these commands and tell me where I'm wrong? [code]

Re: [Tinycc-devel] Using resource files with tcc. How do I do that?

2007-11-24 Thread Mike
KHMan wrote: Knut Flock wrote: For a few days now I have tried to figure out how to use resource files to make a simple windows application with tcc. My last try went like this: [code] tcc -c app.c rc appRC.rc tcc -o app.exe app.o appRC.RES [/code] The last command returned: appRC.RES:1: unre

Re: [Tinycc-devel] Breaking tcc into manageable chunks

2007-11-26 Thread Mike
LOL. You could break it into whatever organization you want. It seems like tcc.c uses #include ".c" a lot. I like that usage, don't you? Joshua Phillips wrote: Oughtn't tcc be broken into multiple source files? ___ Tinycc-devel mailing list Tiny

Re: [Tinycc-devel] Using resource files with tcc. How do I do that?

2007-12-01 Thread Mike
BTW, maybe in Win32 its possible to get around using the EXE resource section entirely? (Any opinions?) Knut Flock wrote: For a few days now I have tried to figure out how to use resource files to make a simple windows application with tcc. My last try went like this: [code] tcc -c app.c rc

Re: [Tinycc-devel] Worm virus

2008-01-21 Thread Mike
Or mabye it originated from the VM in the ACPI hardware, written by an artificial intelligence. Josef 'Jupp' Schugt wrote: * KHMan, 2008-01-22, 01:57: Gary Dumer wrote: AVG antivirus is detecting a WORM virus in all the EXEs on my WindowsXP. I'm using a recent version of TCC. Ummm... what d

[Tinycc-devel] TCC built using NOSTDLIB crashes on linux

2008-01-31 Thread Mike
I was trying to compile TCC using the -nostdlib option. (Here's my command (which works)) bash$ gcc -nostdlib -o tcc tcc.c /usr/lib/crt1.o /usr/lib/crti.o -ldl -lc -lgcc bash$ (Here's my result (which is a crash)) bash$ ./tcc qwert Segmentation fault (core dumped) bash$ Do you get this same e

Re: [Tinycc-devel] TCC built using NOSTDLIB crashes on linux

2008-02-02 Thread Mike
b is free to say and speculate on whatever he wants if he thinks that it validates his position. Finally I'll just say thanks to him for looking into Mike's problem, if for some reason Mike doesn't want to post further. Heh. I apologize to the list for inadvertently

[Tinycc-devel] etiquette

2008-02-02 Thread Mike
Is there some mailing list etiquette about not mentioning another's name? KHMan wrote: I apologize to the list for inadvertently mentioning Rob's name in my posting. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mail

Re: 答复: [Tinycc-devel] Where can I dow nload an old version of tiny cc?

2008-10-09 Thread Mike
What work is so important? * compiler based optimization? (this might not be very important. maybe speedy algorithms/code in your program is more important.) * C99? (tcc's quite up to date with that stuff) What books do you recommend? :) -Mike Basile STARYNKEVITCH wrote: Leslie

Re: [Tinycc-devel] Compiling for Windows 32 Executable

2012-07-03 Thread Mike
EXEs and DLLs in MS Windows are PE files. ELFs are on other operating systems, not MS Windows. Except...: TCC's object files (*.o) are actually in ELF format. But, when TCC finnalyy creates an EXE or DLL, it's in PE format. TCC just uses ELF format as a temporary code storage format, for ob

Re: [Tinycc-devel] x32 ABI

2012-07-06 Thread Mike
Sorry for a newbie question... Q: can current amd64/intel64 chips run it already? Or will only later chips support it? On 7/6/2012 12:26 PM, Robert Clausecker wrote: Hello! Is there any support for the upcoming x32-ABI planned or implemented? It would be great to have a tcc support x32, esp

Re: [Tinycc-devel] When a DLL isn't a DLL.

2013-08-09 Thread Mike
In C, you can specify a calling convention, or the compiler uses its default. I think the default in most C compilers is "cdecl". I'd say, when exporting C code to other languages, you should explicitly specify the calling convention for the exported functions. When calling from another lang

[Tinycc-devel] Tinycc Amalgamation file

2018-11-19 Thread Mike Parsons
Hi all ... I am trying to create a WebAssembly version of tinycc using the emscripten tool chain and was wondering if there exists a single amalgamated source file for tinycc? For example, like that which is offered by sqlite.org https://sqlite.org/howtocompile.html. Any help would be appreciated.

[Tinycc-devel] (no subject)

2006-09-07 Thread Mike B
hi all, Is there a road map, or a todo list for this project? I was wondering how much work there is to do to make this into a GCC drop in replacement? Mike ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman

[Tinycc-devel] (no subject)

2006-09-08 Thread Mike B
Hi there, I wasnt worried about the compiled output, altho a big issue. What im more interested in is the speed in which it compiles. I think it would have a great reception from the likes of Gentoo and others. Maybe that would boost its appeal and manpower =) Mike

[Tinycc-devel] i386 Double alignment- bug?

2006-09-19 Thread Mike Henning
be returning 8 here? Thanks, Mike Henning __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

Re: [Tinycc-devel] i386 Double alignment- bug?

2006-09-19 Thread Mike Henning
--- Daniel Glöckner <[EMAIL PROTECTED]> wrote: > On Tue, Sep 19, 2006 at 09:56:17AM -0700, Mike > Henning wrote: > > I noticed that the sizeof a double is returned as > 8, > > which should be correct, but 4 is returned in > align. > > This is correct behavio

Re: Fw: [Tinycc-devel] windows resources, playsound, xp theme (just resending to the group)

2006-10-02 Thread Mike Henning
ike ? You can compile the original .rc script files with the freely available rc.exe from Microsoft. Mike H. > >Another question though is can tcc write raw > bytes to a file like sound > bytes , you know the characters you see when you > open a sound file in > notepad? I

Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning

2006-10-04 Thread Mike Henning
It looks like you may be using Text names for the ResName. Your script file should look something like: #include 10 ICON "chip.ico" 1RT_MANIFEST "WindowsXP.Manifest" Can you post the .rc script file you are using? Thanks, Mike H. --- bj <[EMAIL PROTE

Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning

2006-10-05 Thread Mike Henning
program you just reference the type as RT_RCDATA. I'll probably add support for text names in a future version, although they are rarely used anymore. Mike H. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam prot

Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning

2006-10-05 Thread Mike Henning
I'm glad to hear it is working now! :) Is the manifest file only being used to get the enhanced XP common controls? If that is the case you should specify a resource id of 1 for the manifest file in your .rc script file and it should work at startup. Mike H. --- bj <[EMAIL PROTECTED

[Tinycc-devel] Address of bug using array notation?

2006-10-06 Thread Mike Henning
&test[4] <--- This doesn't work i = *(int*)(test+4) <--- This works Any takers? :) Thanks, Mike H. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[Tinycc-devel] unknown constraint 't'

2007-07-24 Thread Mike S.
I don't know if this would be called a bug, and I apologize if it's already been posted (searching turned up nothing), but I thought it might be worth reporting this discrepancy between the compiler and the included libraries. OS: Windows XP Home SP2 and Pro SP2 tcc: 0.9.23 (taken straight off th

Re: [Tinycc-devel] linux/unix shared libraries?

2008-04-21 Thread Mike Aubury
t; > > Any suggestions or comments? > > Olaf > > > ___ > Tinycc-devel mailing list > Tinycc-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/tinycc-devel -- Mike Aubury Aubit Computing Ltd is registered in