[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Using TCC to generate API wrappers
From: |
arnold |
Subject: |
Re: [Tinycc-devel] Using TCC to generate API wrappers |
Date: |
Sat, 24 Apr 2021 21:11:44 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
TCC is the wrong tool for the job. Look into SWIG, which already
does this for a number of langauges.
HTH,
Arnold
Kevin Ingwersen via Tinycc-devel <tinycc-devel@nongnu.org> wrote:
> Hello there!
>
> Quick and short question: Can I use libtcc to extract symbol information
> (types, functions, structs, enums, unions) from a C header so that I can
> then use it to generate a wrapper? My goal is to automate the process
> of C interop generation for the V language, which uses TCC as one of
> the mainly supported compilers - so the source is already accessible
> even from a standard V installation, hence my thought of possibly taking
> advantage of that to generate wrappers
> Thank you in advance!
> Kind regards,
> Kevin Ingwersen