|
From: | avih |
Subject: | Re: [Tinycc-devel] Duplicate double |
Date: | Sun, 4 Aug 2019 12:52:38 +0000 (UTC) |
Hi again Avi,
Can I persuade you to tell how you built https://0x0.st/zOsg.7z ?
In particular, how you made the lib and includes relative to the location of 'tcc.exe' for tcc32 and tcc64.
Googling around seems to suggest that one should use the right host (MinGW? Cygwin?) and use the right ./configure options.
Cheers,
Klaus
Hi Avi,
Great! Thanks!
https://0x0.st/zOsg.7z worked.
Just to test, I made a fresh msys2 install, cloned git://repo.or.cz/tinycc.git and compiled. That also works.
For completeness, I have included the steps. The only surprise was that when using .configure --prefix=/usr I had to add --bindir=/usr/bin since otherwise tcc ends up in /usr/tcc.exe
Cheers,
Klaus
---
Remove C:\msys64 if present
Go to https://www.msys2.org/
Click msys2-x86_64-20190524.exe
Install msys2 using defaults
In MSYS2 shell:
> pacman -Syu
As instructed, kill and restart MSYS2 shell
> pacman -Syu
> pacman -S gcc git make texinfo
> git clone git://repo.or.cz/tinycc.git
> cd tinycc
> ./configure --prefix=/usr --bindir=/usr/bin
> make
> make install
> cd
> tcc -v
tcc version 0.9.27 (x86_64 Windows)
> mkdir experiment
> cd experiment
> cat>test.c
#include <stdio.h>
void f(double x,double y,double z){printf("f(%4.1f,%4.1f,%4.1f)\n",x,y,z);}
int main(int argc,char **argv){double u=0.0;f(u*1.0,7.0,8.0);return 0;}
> tcc -o test test.c
> ./test
f( 0.0, 7.0, 8.0)
[Prev in Thread] | Current Thread | [Next in Thread] |