tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Introduce tcc_args


From: grischka
Subject: Re: [Tinycc-devel] Introduce tcc_args
Date: Thu, 12 Oct 2017 11:36:12 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

uso ewin wrote:
Hello,

I'm using tcc, as a JIT compiler for this project:
https://github.com/cosmo-ray/yirl, on which I need to use -nostdlib but,
libtcc.h doesn't allow to do that, only the command line does.

tcc_set_options(s, "-nostdlib");
From 2/2013: http://repo.or.cz/tinycc.git/commitdiff/05108a

-- gr


So I've made a new function: tcc_args
The function is exactly what tcc_parse_args was in tcc0.9.26,
except the function is public.
I could just have change tcc_parse_args to a LIBTCCAPI function
but here you can continue to modify tcc_parse_args without breaking the api,
and tcc_parse_args require more arguments than tcc_args.

Here's my code
https://github.com/cosmo-ray/tcc/commit/efc4d2b638718ddfa9dbc46b1021b8711645aa1e

What do you think of pushing that to mob ?

Best regards,
Matthias

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]