12 KiB
fiveth
Source: https://github.com/dramforever/fiveth
GitHub - dramforever/fiveth: A stack-based language implemented in RISC-V assembly
Navigation Menu
Toggle navigation
Appearance settings
-
Platform
- AI CODE CREATION
- DEVELOPER WORKFLOWS
- APPLICATION SECURITY
- EXPLORE
-
Solutions
- BY COMPANY SIZE
- BY USE CASE
- BY INDUSTRY
-
Resources
- EXPLORE BY TOPIC
- EXPLORE BY TYPE
- SUPPORT & SERVICES
-
Open Source
- COMMUNITY
- PROGRAMS
- REPOSITORIES
-
Enterprise
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search
Clear
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel Submit feedback
Saved searches
Use saved searches to filter your results more quickly
Name
Query
To see all available qualifiers, see our documentation.
Cancel Create saved search
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
dramforever / fiveth Public
- Notifications You must be signed in to change notification settings
- Fork 0
- Star 17
A stack-based language implemented in RISC-V assembly
17 stars 0 forks Branches Tags Activity
Notifications You must be signed in to change notification settings
Additional navigation options
dramforever/fiveth
main
Go to file
Code
Open more actions menu
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
| Latest commit History96 Commits 96 Commits | ||||
| docs | docs | |||
| src | src | |||
| .envrc | .envrc | |||
| .gitignore | .gitignore | |||
| Makefile | Makefile | |||
| README.md | README.md | |||
| config.mk | config.mk | |||
| flake.lock | flake.lock | |||
| flake.nix | flake.nix | |||
| shell.nix | shell.nix | |||
| View all files |
Repository files navigation
Fiveth
A stack-based language implemented in RISC-V assembly.
Building and running Fiveth
- Edit
config.mkto suit your environment maketo build the program
With the default config this should end a message like:
* Build complete: build/fiveth
The default configuration is to run an interactive Fiveth shell that works under a 64-bit RISC-V Linux environment. You can now:
make qemuto run it in QEMU user-mode emulationmake runto run it directly, if you are actually on RISC-V
Try typing some simple Fiveth programs. Outputs are shown after a semicolon.
0 > 1 2 + . ; 3
0 > 10 [ . ] count ; 0 1 2 3 4 5 6 7 8 9
0 > "Hello, world!" s. ; Hello, world!
Press Ctrl-D to quit. docs/shell.md has more details on
running and using the Fiveth interactive shell.
Installing the required tools
On Ubuntu 22.04:
# apt install qemu-user make
# # If using GNU toolchain
# apt install gcc-riscv64-linux-gnu
# # If using LLVM toolchain
# apt install clang lld
If you have Nix, you can try to use the provided shell.nix or flake.nix.
On other systems, you can try to acquire a LLVM toolchain or a RISC-V toolchain,
as well as GNU make. To run Fiveth in an emulator, qemu-riscv64 can be used to
emulate a Linux binary but is only supported on Linux hosts.
About
A stack-based language implemented in RISC-V assembly
Topics
Resources
Uh oh!
There was an error while loading. Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Languages
Footer
© 2026 GitHub, Inc.
Footer navigation
- Terms
- Privacy
- Security
- Status
- Community
- Docs
- Contact
- Manage cookies
- Do not share my personal information
You can’t perform that action at this time.