Skip to content

Study purposes created language to deal with list like objects

License

Notifications You must be signed in to change notification settings

V-outsider/LiLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiLang

Study purposes created language to deal with list like objects

Algo:

  1. antlr4 -Dlanguage=Go LiLang.g4 -o ./generated # If not exists

2)llc -filetype=obj output.ll -o output.o 3) # Check if output.ll exists and is valid cat output.ll

Use verbose output for llc

llc -mtriple=arm64-apple-darwin24.1.0 -filetype=obj output.ll -o output.o

Check the file type

clang -arch arm64 output.o -o output

  1. Use verbose output for clang linking

    clang -v output.o -o output

print func clang -c print.c -o print.o

clang output.o print.o -o output clang output.o -o output -lc

important inside code

target triple = "arm64-apple-darwin24.1.0" target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

About

Study purposes created language to deal with list like objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published