Build using tcc as C compiler

10 views
Skip to first unread message

Waldek Hebisch

unread,
Dec 20, 2024, 10:01:22 AM12/20/24
to fricas...@googlegroups.com
After removing test for GCC from configure we can use tcc to
build FriCAS. 'tcc' compiles much faster than 'gcc'. In our
case apparently this does not lead to measurably faster build,
but time spent in 'configure' is shorter.

--
Waldek Hebisch

Qian Yun

unread,
Dec 20, 2024, 7:12:22 PM12/20/24
to fricas...@googlegroups.com
Removing the "inline" keyword can make FriCAS
c89 compliant (instead of current c99).

Is this worth it?

- Qian
remove-inline.patch

Dima Pasechnik

unread,
Dec 20, 2024, 7:31:39 PM12/20/24
to fricas...@googlegroups.com
If you are after speeding up ./configure, look at cmake or meson. They are much faster than autotools+make

Waldek Hebisch

unread,
Dec 20, 2024, 9:53:59 PM12/20/24
to fricas...@googlegroups.com
On Sat, Dec 21, 2024 at 08:12:17AM +0800, Qian Yun wrote:
> Removing the "inline" keyword can make FriCAS
> c89 compliant (instead of current c99).
>
> Is this worth it?

No. I do not think there is any complier that we want to use
which do not support 'inline'. And in higly unlikely case when
some compiler can not handle 'inline' we can do something like:

#ifdef COMP_X
#define inline
#endif

where COMP_X is a symbol identifying compile X.

That is, we can use 'inline' for compilers that implement it
and use C macro for other.

--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages