On Sun, Nov 24, 2024 at 05:51:59PM -0300, Brian Mayer wrote:
> Hello again.
>
> > Very long ago I did similar tries. As a workaround, I rewrote the
> > syscall wrapper in musl[1].
> >
> > For the reason, I think there's something wrong in x86-64 asm constraint
> > computation, since r10 is always
On Wed, Nov 20, 2024 at 12:15:34PM +0100, Domingo Alvarez Duarte wrote:
> While testing building tinycc with several compilers I'm getting this
> warning from "zig cc" (clang 18):
>
>
>
> tccpp.c:3589:62: warning: adding 'int' to a string does not append to the
> string [-Wstring-plus-int]
>
On Fri, Nov 15, 2024 at 06:27:20PM +, Michael Ackermann via Tinycc-devel
wrote:
> FYI:
> That is, for regression testing tcc which would have prevented me wasting
> weeks
> of bisecting, it is now possible:
> - to regularly compile/link/boot linux-2.4 x86
> - and a complete set of ~500 packag
On Tue, Nov 12, 2024 at 07:08:47PM -0300, Brian Mayer wrote:
> >> After the release, i plan to work on the following C99/C11 items and see,
> >> what is needed to implement them:
> Great to hear that!
>
> Continuing on the subject: after moving away the complex folder the
> compilation went a bit
On Wed, Oct 09, 2024 at 08:00:05AM +, Yao Zi via Tinycc-devel wrote:
> On Mon, Oct 07, 2024 at 05:44:47PM -0300, Brian Mayer wrote:
> > The program being compiled:
> >
> > # cat main.c
> > #include
> >
> > void main(void) {
> > printf(&
On Mon, Oct 07, 2024 at 05:44:47PM -0300, Brian Mayer wrote:
> The program being compiled:
>
> # cat main.c
> #include
>
> void main(void) {
> printf("hello from lin0\n");
> }
>
> I'm using musl-1.2.5 compiled on Arch Linux with GCC on x86_64 with
> static libs disabled.
Could you send
On Sat, Oct 05, 2024 at 06:53:48PM +0200, grischka via Tinycc-devel wrote:
> On 29.09.2024 09:58, Yao Zi via Tinycc-devel wrote:
> > endbr64 has no operand but comes with a ModR/M byte. Handle it in the
> > same way as *fence instructions.
>
> If you know what you'
It has the same effect as call.
Signed-off-by: Yao Zi
---
x86_64-asm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/x86_64-asm.h b/x86_64-asm.h
index 339e1dfb..e4655a7a 100644
--- a/x86_64-asm.h
+++ b/x86_64-asm.h
@@ -225,6 +225,8 @@ ALT(DEF_ASM_OP2(shrdw, 0x0fad, 0, OPC_MODRM | OPC_WLX
This series adds support of 'q'-suffixed call and endbr64 instruction,
enabling TinyCC to compile QBE generated assembly.
Thanks for your time and review.
Yao Zi (2):
x86_64-asm.h: support callq for better compatibility
x86_64-asm: support endbr64 instruction
i386-asm.c | 12 +---
endbr64 has no operand but comes with a ModR/M byte. Handle it in the
same way as *fence instructions.
Signed-off-by: Yao Zi
---
i386-asm.c | 12 +---
x86_64-asm.h | 3 +++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/i386-asm.c b/i386-asm.c
index 33783d5f..a3e16fb8
On Wed, Aug 21, 2024 at 08:32:20PM +, Max Logaev via Tinycc-devel wrote:
> Hello!
> I have very little idea what the status of the project is. And I have
> absolutely no idea about the rules of contributing. I made a commit to the
> "mob" branch according to the instructions thinking that I w
See thread "win32: -Wl,-nostdlib: undefined symbol 'memset'"
This patch has been tested on x86-64 Alpine (musl) and all tests are passed.
I do not have a Windows platform, so many thanks if someone could help me test
it.
---
tccgen.c | 5 +
x86_64-gen.c | 38
12 matches
Mail list logo