Skip to content

Compiler in C for a small programming language targetting x64 asm

Notifications You must be signed in to change notification settings

jan-van-bergen/Lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lang

Compiler in C for a simple programming language that compiles to x64 assembly (NASM syntax).

Features

  • Functions
  • Scopes
  • Pointers
  • Arrays
  • Structs
  • Type inference

Hello World Example

extern puts(str: char *);
extern strlen(str: char *) -> int;

func main() -> int {
	str := "Hello world!";	
	puts(str);

	return strlen(str);
}

Dependencies

  • NASM (https://www.nasm.us/): used as assembler and should be added to the system Path variable.
  • Microsoft Linker (included with Visual Studio) is used for linking.

About

Compiler in C for a small programming language targetting x64 asm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published