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
Please consider adding the ability to set an initial memory offset, which V can treat as the start of the available memory when allocating.
Use Case
I'm trying to use V to code for the tic80, as it supports wasm which V can compile to. This system uses memory mapped IO which means that the first 96kb of memory is reserved for system functions, and if written to can cause strange behavior. The Zig template provided by tic80 shows a memory offset being applied to prevent the language from allocating in this region.
Proposed Solution
A simple command line flag or similar would be preferable. Most other languages have this kind of option in a project file, which is convenient however V currently does not have many options in the v.mod file. Changing that would be interesting to consider but way out of scope for this issue.
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
Version used
master
Environment details (OS name and version, etc.)
V full version: V 0.3.4 2597efa.134e781
OS: linux, "Arch Linux"
Processor: 6 cpus, 64bit, little endian, AMD Ryzen 5 4500U with Radeon Graphics
This discussion was converted from issue #18155 on June 27, 2023 10:01.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
Please consider adding the ability to set an initial memory offset, which V can treat as the start of the available memory when allocating.
Use Case
I'm trying to use V to code for the tic80, as it supports wasm which V can compile to. This system uses memory mapped IO which means that the first 96kb of memory is reserved for system functions, and if written to can cause strange behavior. The Zig template provided by tic80 shows a memory offset being applied to prevent the language from allocating in this region.
Proposed Solution
A simple command line flag or similar would be preferable. Most other languages have this kind of option in a project file, which is convenient however V currently does not have many options in the v.mod file. Changing that would be interesting to consider but way out of scope for this issue.
Other Information
No response
Acknowledgements
Version used
master
Environment details (OS name and version, etc.)
V full version: V 0.3.4 2597efa.134e781
OS: linux, "Arch Linux"
Processor: 6 cpus, 64bit, little endian, AMD Ryzen 5 4500U with Radeon Graphics
getwd: /home/squidink7
vexe: /home/squidink7/.v/v
vexe mtime: 2023-05-05 05:21:30
vroot: OK, value: /home/squidink7/.v
VMODULES: OK, value: /home/squidink7/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.40.1
Git vroot status: weekly.2023.10-323-g134e7819 (20 commit(s) behind V master)
.git/config present: true
CC version: cc (GCC) 13.1.1 20230429
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
Beta Was this translation helpful? Give feedback.
All reactions