OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 9:30 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Building TCC with ELF support
PostPosted: Sun May 23, 2021 9:31 am 
Offline
Member
Member

Joined: Wed Jun 27, 2012 3:57 am
Posts: 37
On the TCC wiki page, instructions are shown to build a TCC version that generates ELF binaries on Windows.
As after several years of Linux, I returned to Windows, I need this to continue my OS dev experiments.
But even when I stick to the tcc version mentioned on that page, it doesn't work.

First thing to fix in the batch file is .VERSION to VERSION.
But the next problem is when this is executed:
Code:
tcc-0.9.26>win32\tiny_impdef win32\libtcc.dll -o win32\libtcc\libtcc.def
tiny_impdef: could not get exported function names.

After that nothing works, tcc says it can't find '-ltcc' while libtcc.dll is there and so on...

Can this page be reviewed by someone who is more capable of fixing it than me?
Maybe even update it to the latest version of tcc?


Top
 Profile  
 
 Post subject: Re: Building TCC with ELF support
PostPosted: Sun May 23, 2021 1:01 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
Have you tried WSL?

Out of curiosity, why do you need TCC specifically and not some other C compiler?


Top
 Profile  
 
 Post subject: Re: Building TCC with ELF support
PostPosted: Tue May 25, 2021 6:01 am 
Offline
Member
Member

Joined: Wed Jun 27, 2012 3:57 am
Posts: 37
Octocontrabass wrote:
Have you tried WSL?


No I haven't and I just might :wink:
The reason is mostly because it is somewhat separated from Windows as my project files are in a Windows based directory (and I like it there because of easy editor access and things like that) while your WSL home folder is in some kind of inaccessible virtual disk. I know you can go to the Windows drive from WSL but then I have had some file security issues. I haven't investigated this enough however.

Octocontrabass wrote:
Out of curiosity, why do you need TCC specifically and not some other C compiler?

Because it's so easy to use and I like it. I want it to generate the cleanest simplest possible binaries. If it were possible for me to not use ELF, I would prefer it. But it does solve some early issues about data/code management so I embraced it.

And then, apart from these paths, my question remains a valid one, because the instructions on the wiki page don't work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group