Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » computer or OS
- IronHead43
- Scratcher
53 posts
computer or OS
so i am super into OS and computer science and i dont just make simulators like everyone else on scratch they say ‘i made an OS’ and yeah it has a game but no i make like CPU compiler languages and recreate hard drives but then i saw my dream scratcher @laddie12 and he made this https://scratch.mit.edu/projects/124853640/#player! it is AMAZING please can someone help make something like this? it would be GREAT
- TheAspiringHacker
- Scratcher
100+ posts
computer or OS
It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.
This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).
This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).
Long live Kyoto Animation!
- IronHead43
- Scratcher
53 posts
computer or OS
nah it should not be too hard i am learning how to make it right now because i know some very clever people and the processor thing is called a ‘CPU’ It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.
This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).
- bybb
- Scratcher
1000+ posts
computer or OS
So you want to create your own CPU? Then you want to create your own virtual storage medium? Then you want to build a compiler for the CPU?nah it should not be too hard i am learning how to make it right now because i know some very clever people and the processor thing is called a ‘CPU’ It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.
This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).
I'd recommend trying to emulate the 6502 at first.
- IronHead43
- Scratcher
53 posts
computer or OS
ok yeah ATM i am just working on the compiler using a binary converterSo you want to create your own CPU? Then you want to create your own virtual storage medium? Then you want to build a compiler for the CPU?nah it should not be too hard i am learning how to make it right now because i know some very clever people and the processor thing is called a ‘CPU’ It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.
This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).
I'd recommend trying to emulate the 6502 at first.
- Discussion Forums
- » Advanced Topics
- » computer or OS