Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support to sparc architeture? #365

Open
RodrigoDornelles opened this issue Oct 17, 2022 · 1 comment
Open

add support to sparc architeture? #365

RodrigoDornelles opened this issue Oct 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@RodrigoDornelles
Copy link
Owner

Please Describe The Problem To Be Solved

An important architecture to implement, used by banks, mainframes and supercomputers.

Suggest A Solution

dropping dependencies from the <stdio.h> library will help keep the language cleaner
and help support sparc and other architectures. #296

compilation attempt

$ zig cc programs/interpreter.c -lm --target=sparc-linux-gnu

output errors

In file included from programs/interpreter.c:1:
In file included from programs/../src/3bc.h:68:
In file included from /home/rodrigo/rodrigo/zig-linux-x86_64-0.9.1/lib/libc/include/generic-glibc/stdio.h:893:
/home/rodrigo/rodrigo/zig-linux-x86_64-0.9.1/lib/libc/include/generic-glibc/bits/stdio-ldbl.h:26:20: error: cannot apply asm label to function after its first use
__LDBL_REDIR_DECL (vfprintf)
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/rodrigo/rodrigo/zig-linux-x86_64-0.9.1/lib/libc/include/generic-glibc/sys/cdefs.h:547:26: note: expanded from macro '__LDBL_REDIR_DECL'
  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
                         ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from programs/interpreter.c:1:
@RodrigoDornelles RodrigoDornelles added bug Something isn't working enhancement New feature or request labels Oct 17, 2022
@RodrigoDornelles RodrigoDornelles self-assigned this Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants