tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Using tcc for reflection


From: Yair Lenga
Subject: [Tinycc-devel] Using tcc for reflection
Date: Tue, 1 Feb 2022 07:27:22 +0200

I am working on a project that allows users to describe financial model using 
DSL, which is interpreted. I am looking for a way to speed up the model speed. 
I am thinking about translating the model to “c”, and compiling it on the fly 
using tcc. Few questions:

1. Is it possible to use tcc to create shared libraries (.so) that can be 
dynamically linked into existing program using dlopen, dlsym ? 
2. Does tcc support the ‘cleanup’ variable attribute - to run cleanup function 
when variable get out of scope (gif extension).
3. Is it possible to use tcc to introspect variables - make it possible to 
print current variables (subset) from the simulation at specific point ? This 
is needed to debug the model.

Thanks, yair


Sent from my iPad


reply via email to

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