luapower / dynasm Goto Github PK
View Code? Open in Web Editor NEWDynASM with Lua mode
Home Page: http://luapower.com/dynasm
DynASM with Lua mode
Home Page: http://luapower.com/dynasm
Hello,
I am looking for assembly x86 self contained code generator, as I know that we need to compile libc-functions code static, then look at the assembly dump.I think the flag is -static to gcc. Then gcc will bring the wanted code out from libc into your code. And if I want 16-bit code I think I need to be on a 32-bit OS, like Windows 98. Then run gcc and tell it to output 16-bit code. I am not sure of the flag, maybe -m16.
As I actually need the Assembly X86 - 16 bit and 32 bit fully self contained and can I analyse source code and binaries, identifying programming bugs that can result in system crashes, memory corruption, leaks, data races, and security vulnerabilities on assembly x86 self contained code.
My questions are:
Do you know how to get Assembly X86 - 16 bit and 32 bit fully self contained ? if yes can you tell me how.
Do you have examples on Assembly X86 - 16 bit and 32 bit fully self contained which have bugs and security vulnerabilities? If yes code you provide me some examples.
Do you know a software can convert the Assembly X86 libc-functions code to Assembly X86 - 16 bit and 32 bit fully self contained? or to generate Assembly X86 self contained from exe file
Is there a way to convert the Assembly X86 libc-functions code to Assembly X86 - 16 bit and 32 bit fully self contained? or is there away to get Assembly X86 - 16 bit and 32 bit fully self contained?
Do you know a software can find the bugs and security vulnerabilities on assembly X86 - 16 bit and 32 bit fully self contained??
Thanks
Lua 5.3 introduces bitwise operators, including |
.
It's not uncommon to write code like:
if (getsomelongthing:foo(arg1)
| getsomelongthing:bar()
& somemask) ~= 0 then
......
end
This conflicts with the pipe character as used in dynasm
I am super impressed with this Lua adaptation of dynasm!
I have hooked it into Snabb Switch over here: snabbco/snabb#575 and look forward to getting some experience. (The integration is a bit messy: probably best would be to make a Github fork of this upstream repo, make changes and send PRs from there, and link it as a submodule into snabbswitch..?)
and a question too:
Would it make sense to make dynasm
preserve line numbers in the Lua source files? I suspect error messages will be confusing otherwise. also, if we did that, perhaps we could run dynasm on every source file so that it is always available...
I've tried the examples in both Windows and Ubuntu x64, they don't work.
It crashes with an assertion fail, when I execute the multiply_x86 example on windows, it returns 786291992
It seems like the esp variables aren't filled with the actual variables
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.