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
>
> 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
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
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
>>> 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
"(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
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
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]
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
--- 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
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
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
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
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
&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
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
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
31 matches
Mail list logo