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

Adding an Assembly Version #9

Open
JannesAlthoff opened this issue Apr 7, 2024 · 0 comments
Open

Adding an Assembly Version #9

JannesAlthoff opened this issue Apr 7, 2024 · 0 comments

Comments

@JannesAlthoff
Copy link

Adding an assembly version as a base benchmark would be nice. I've attached a Assembly Version for x86 assembly, which is slightly better then gcc-musl.

.global _start

.text
_start:
    # Call Write
    movq $1, %rax 
    movq $1, %rdi 
    movq $msg, %rsi 
    movq $13, %rdx 
    syscall

    # Call sys_exit
    movq $60, %rax
    movq $0, %rdi
    syscall

.data
msg:
    .ascii "Hello World!\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant