tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Flushing caches before -running a program


From: Thomas Preud'homme
Subject: [Tinycc-devel] Flushing caches before -running a program
Date: Mon, 11 Mar 2013 22:40:38 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Hi there,

when packaging TinyCC 0.9.26 for Debian I noticed a build failure on arm with 
EABI calling convention. A bit puzzled at the failure after all the testing 
done (this bug didn't show up on my hardware), I then started to investigate.

After some look at the code, I asked for help to fellow Debian Developers and 
one quickly found that the problem came from the lack of flushing of 
instruction and data caches before running a program in the -run mode. I then 
quickly started working on a patch but I needed to know the size of the code 
that was compiled by tcc. So I added a function to return this in tccgen.c but 
I'm not sure it's ok. It adds another public function and it's the only 
function that take a TCCState argument in that file.

I'm thus asking for comments on the patch.

Best regards,

Thomas

Attachment: flush_caches_before_run.diff
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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