tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] libtcc name mangling


From: Gabriel Corneanu
Subject: [Tinycc-devel] libtcc name mangling
Date: Wed, 11 Sep 2013 12:32:45 +0200

Hello again,

First thanks to grischka for previous quick fix.
Now I have another small issue; using "stdcall" always generate some name mangling for function names, in libtcc.c line ~499.
It ignores the "leading_underscore" option, which is otherwise respected a few lines below (512).
The effect is, a stdcall function can not be found via tcc_get_symbol (as written before, I'm calling functions directly) without knowing the mangling scheme.

Is there any reason for this name mangling? Because fastcall/regparm doesn't produce any mangling, although they might also use stack just like stdcall.
As I'm using it from Pascal(Delphi), regparm(3) is actually better, but it still seems inconsistent.

Regards,
Gabriel



reply via email to

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