Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Esoteric programming language

This is simple esoteric language, something between python and c++.

How it work?

There are three parts of program.

First parts is a translator from my language to my assembler.

Second part is a compile from my assembly language to my binary code. Then you can run this binary code on a simple stack processor. Stack processor is working on a C language. It's model of real cpu.

After it you can convert my binary code to x86-64 binary elf file and run it on real cpu.

How to use it?

To compile code:

make INPUT=your_file ELF_FILE=result.elf

If you want compile some code on assembler, then run

make asm INPUT=asm_file

Comparison of two type CPU

Time was measured on this program:

func fibrec(y)
{
	if (y <= 2)
		return 1;
	return (fibrec(y - 1) + fibrec(y - 2));
};

i = 1;
while (i < 1000)
{
	tmp = fibrec(20);
	i = i + 1;
};
print(111);

CPU time on a stack processor

CPU time on a real assembly

Ratio: 96/1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages