tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] standalone backtraces


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] standalone backtraces
Date: Sun, 19 Jan 2020 12:58:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Your code change made the bounds-checking code 30% slower.
The __bound_local_new/__bound_local_delete is now called for every function.
There was an optimization to call it only when lbounds_section was used in a function.

Regards,

    Herman


On 2020-01-19 12:06, grischka wrote:
Herman ten Brugge wrote:
I need only 1. I modified the code. See attached patch.

I don't think so.

Basically, in tinycc, before you add new code, always try if you
can solve the problem by just removing old code first.

(Also, please don't make changes to existing code without any
comments, unless really obvious for everybody).

Anyway, should work now. See
https://repo.or.cz/tinycc.git/commitdiff/d79e1dee

Btw, there seems to be a bug in the sym-version code that crashes
tcc when it tries to link with a .so, for example:

    echo "void f() {}" | tcc - -shared -o a.so
    echo "main() {}" | tcc - a.so
    <segmentation fault>

I cannot reproduce this. I checkout a fresh copy and see no problem.
I use Fedora 31 with all updates.

see for example
  https://gitlab.com/giomasce/tinycc/-/jobs/408014593

 +./a.exe: error while loading shared libraries: ./a1.so: unsupported version
   25960 of Verneed record

--- grischka


Regards,

    Herman





reply via email to

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