switching to nasm, yasm is dead from what I can tell, not caring about perf diff anymore.

This commit is contained in:
2025-06-15 18:37:40 -04:00
parent 032e91a81f
commit b1b401784a
9 changed files with 29 additions and 14 deletions

View File

@ -1,3 +1,3 @@
package asmd // ASM Duffle package asmduff // ASM Duffle

View File

@ -2,17 +2,18 @@
BITS 64 ; Explicitly specify 64-bit mode BITS 64 ; Explicitly specify 64-bit mode
DEFAULT REL ; Use RIP-relative addressing by default DEFAULT REL ; Use RIP-relative addressing by default
extern ExitProcess ; Import Windows API functions
extern GetStdHandle
extern WriteConsoleA
; Data section ; Data section
section .data section .data
message db "Hello, x86-64 ASM!", 13, 10, 0 ; String with CRLF and null terminator message db "Hello, NASM!", 13, 10, 0 ; String with CRLF and null terminator
message_len equ $ - message ; Calculate string length message_len equ $ - message ; Calculate string length
; Code section ; Code section
section .text section .text
global main ; Export main symbol for linker global main ; Export main symbol for linker
extern ExitProcess ; Import Windows API functions
extern GetStdHandle
extern WriteConsoleA
main: main:
; Function prologue ; Function prologue

View File

@ -1,4 +1,21 @@
package asmd package asmduff
section_data :: proc()
{
}
section_text :: proc()
{
}
section_externs :: proc()
{
}
main :: proc() main :: proc()
{ {

View File

@ -1,3 +1,3 @@
package asmd package asmduff
import

View File

@ -0,0 +1,2 @@
$nasm = 'nasm'
& $nasm -help

1
scripts/build_nasm.ps1 Normal file
View File

@ -0,0 +1 @@
$nams

View File

@ -4,8 +4,3 @@
Repo: https://github.com/Ed94/gencpp.git Repo: https://github.com/Ed94/gencpp.git
Commit: 685bba36d5ed64b48908c950fbbb7f1dbb297120 Commit: 685bba36d5ed64b48908c950fbbb7f1dbb297120
## YASM
Repo: https://github.com/yasm/yasm.git
Commit: 121ab150b3577b666c79a79f4a511798d7ad2432

Submodule toolchain/yasm deleted from 121ab150b3