loov / lensm Goto Github PK
View Code? Open in Web Editor NEWGo assembly and source viewer
License: MIT License
Go assembly and source viewer
License: MIT License
Many instructions can be rewritten to be clearer for people, e.g.
MOV (R2), R1 ==> R1 := memory[R2]
ADDQ $1, R1 ==> R1 := R1 + 1
LEAQ 0(R1)(R2*4), R3 ==> R3 := R1 + R2 * 4
FMADDS F0, F2, F1, F2 ==> F2 := F0*F1 + F2
It doesn't need to be comprehensive, however if there was a list of substitutions then people can add new ones as the need arises.
For people learning assembly it would be nice to have built in instructions descriptions that would be shown on hover.
when I run go install loov.dev/lensm@main
.It's failed.
go install loov.dev/lensm@main
go: downloading loov.dev/lensm v0.0.4-0.20231010151922-d9771339009f
go build gioui.org/app/internal/xkb:
# pkg-config --cflags -- xkbcommon
Package xkbcommon was not found in the pkg-config search path.
Perhaps you should add the directory containing `xkbcommon.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xkbcommon', required by 'virtual:world', not found
pkg-config: exit status 1
go build gioui.org/internal/vk:
# pkg-config --cflags -- wayland-client
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-client.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-client', required by 'virtual:world', not found
pkg-config: exit status 1
Please teach me how to fix it.Thanks.
I think It would be great to use this tool on the web with webassembly.
Technically the core logic needs:
Line 3 in d977133
Rest of the code should work fine.
✘ user@SirVariable ~/network-manager-wireguard master go install loov.dev/lensm@main
/home/user/.go/pkg/mod/[email protected]/internal/vk/vulkan.go:15:10: fatal error: vulkan/vulkan.h: No such file or directory
15 | #include <vulkan/vulkan.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
✘ user@ram-khadem ~/network-manager-wireguard master go install loov.dev/lensm@main
# gioui.org/internal/vk
/home/user/.go/pkg/mod/[email protected]/internal/vk/vulkan.go:15:10: fatal error: vulkan/vulkan.h: No such file or directory
15 | #include <vulkan/vulkan.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
lensm does not display the source when building source with go 1.20. lensm works ok when building source with go 1.19.
There's a file leak with executables not being closed.
Thanks for making lensm!
In the tradition of godbolt.org and dogbolt.org, I bought the domain name go-dbolt.org just now when I saw this on Twitter. I'll gladly transfer the domain to you for free in case you want to use it for this project.
It seems that lensm does not support go 1.20 binaries yet.
Also getting some errors when trying to compile my program with go 1.19:
unable to load source from "gofile../Users/rhi/code/table/page.go": open gofile../Users/rhi/code/table/page.go: no such file or directory
It would be nice if when you clicked on jump instructions (the ones that have the arrows drawn on the left) it would scroll the assembly listing so that the destination was in view.
When trying to open go 1.21 binaries, get a path not found for source files.
it is fantastic to join this into IDA
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.