[Top][All Lists]

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

Re: [Tinycc-devel] sqlite on windows

From: Christian Jullien
Subject: Re: [Tinycc-devel] sqlite on windows
Date: Sun, 20 Jun 2021 21:09:21 +0200

Hi maybe your proposal can be added.

Here are the additional flags I use to compile SQLite on Windows which may also help if your application is single thread:




From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org] On Behalf Of Tyge Løvset
Sent: Sunday, June 20, 2021 20:31
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] sqlite on windows



It works on Linux: tcc insert_data.c sqlite.c -pthread -ldl, but on win64 I get an undefined intrinsic symbol   __faststorefence(). It can be implemented as an mfence instruction, but I think microsoft implements it with xchgl or similar, as below. Should we add this?


#ifdef _WIN64

void __faststorefence(void) {

    long __fence;

    __asm__ __volatile__( "xchgl %%eax, %0" :"=m"(__fence));

    //__asm__ __volatile__("mfence":::"memory");



reply via email to

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