tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] S-Lang tinycc module.


From: Agathoklis D.E Chatzimanikas
Subject: [Tinycc-devel] S-Lang tinycc module.
Date: Fri, 23 Mar 2018 17:46:19 +0200
User-agent: Mutt/1.9.2 (2017-12-15)

Hi,

I created a tinycc binding for the S-Lang programming language,

https://github.com/agathoklisx/slang-devel/tree/master/slang-modules/tcc

and while I was trying to create an executable, I had to use:

  tcc_set_options (tcc_handler, "-xn");

which sets tcc_handler->filetype to AFF_TYPE_NONE,
otherwise (the path) elf_output_file() -> tcc_add_runtime()
tries to compile /usr/local/lib/tcc/libtcc1.a when it calls

  tcc_add_support(s1, TCC_LIBTCC1);

I was wondering if there is a better librar"iezed" way.

Best
  Αγαθοκλής

p.s.,
(note that my C Fu is at a novice level, so be kind for any error :))



reply via email to

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