Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
stasc: now builds in 20 ms!
Browse files Browse the repository at this point in the history
  • Loading branch information
l1mey112 committed Nov 1, 2022
1 parent 34f40b9 commit 27cce4e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions stas.stas
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ include 'src/x86.stas' ; stas codegen definitions and reg allocator
include 'src/gen.stas' ; stas code generator, creates x86_64 asm

fn usage 0 0 {
"USAGE:::::\n" eputs
"stas 0.1.0 Copyright (C) 2022 l-m.dev\n\n" eputs
"USAGE: ./stas [OPTIONS] [FILE]\n\n" eputs

" -o <output> Specify '-o -' to dump assembly to stdout\n" eputs
" -g Debug symbols. Most effective with the `nasm` backend\n" eputs
" -b <backend> Assemblers `nasm` or `fasm` as compiler backend\n" eputs
" -h Show this message\n\n" eputs
}

fn help_and_exit 0 0 {
"hellpy\n" eputs
usage
0 exit
}
Expand Down

0 comments on commit 27cce4e

Please sign in to comment.