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
V full version: V 0.4.8 2ab1523
OS: windows, Microsoft Windows Server 2022 Standard v20348 64-bit
Processor: 8 cpus, 64bit, little endian,
getwd: E:\Export\tinyos\ch01_bootsector\v
vexe: C:\Users\ping\scoop\apps\v\0.4.8\v.exe
vexe mtime: 2024-09-28 16:45:40
vroot: OK, value: C:\Users\ping\scoop\apps\v\0.4.8
VMODULES: OK, value: C:\Users\ping\.vmodules
VTMP: OK, value: C:\Users\ping\AppData\Local\Temp\2\v_0
Git version: git version 2.45.1.windows.1
Git vroot status: Error: fatal: not a git repository (or any of the parent directories): .git
.git/config present: false
CC version: Error: 'cc' is not recognized as an internal or external command,
operable program or batch file.
thirdparty/tcc: N/A
What did you do? ./v -g -o vdbg cmd/v && ./vdbg bootsector.v
fnmain() {
message:="Hello, World!"for ch in message {
asm x86 {
mov ah, 0x0e
mov al, ch
int0x10
}
}
// Infinite loop to keep the program runningfor {}
}
What did you expect to see?
Compile OK
What did you see instead?
bootsector.v:4:9: warning: unused variable: `ch`
2 | message := "Hello, World!"
3 |
4 | for ch in message {
| ~~
5 | asm x86 {
6 | mov ah, 0x0e
C:/Users/ping/AppData/Local/Temp/2/v_0/bootsector.01JFM5TKDDTX2P0VENQFFRDHXB.tmp.c:7059: at print_backtrace_skipping_top_frames_tcc: Backtrace
C:/Users/ping/AppData/Local/Temp/2/v_0/bootsector.01JFM5TKDDTX2P0VENQFFRDHXB.tmp.c:7026: by print_backtrace_skipping_top_frames
C:/Users/ping/AppData/Local/Temp/2/v_0/bootsector.01JFM5TKDDTX2P0VENQFFRDHXB.tmp.c:7927: by unhandled_exception_handler
7ffe189fbfc2 : by ???
C:/Users/ping/AppData/Local/Temp/2/v_0/bootsector.01JFM5TKDDTX2P0VENQFFRDHXB.tmp.c:13479: at main__main: RUNTIME ERROR: invalid memory access
C:/Users/ping/AppData/Local/Temp/2/v_0/bootsector.01JFM5TKDDTX2P0VENQFFRDHXB.tmp.c:13523: by wmain
00467040 : by ???
004671a3 : by ???
7ffe18304cb0 : by ???
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
V doctor:
What did you do?
./v -g -o vdbg cmd/v && ./vdbg bootsector.vWhat did you expect to see?
Compile OK
What did you see instead?
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Huly®: V_0.6-21662