hmmm, i thought assembly is assembly and c is c, so you can only use one language at a time
Hi,
does anyone know how to use assembly language in c and what libraries are needed?
thanks
hmmm, i thought assembly is assembly and c is c, so you can only use one language at a time
whatdoyougetwhenyoumultiplysixbynine??
Hey pasholy,
To add inline assembly, all you need to do is include
__asm__(" foobar");
For instance;
unsigned long get_sp(void)
{
__asm__("movl %esp %eax");
}
Alastair,
It's actually (somewhat) common practice to use asm and c together. A loop in ASM is a lot faster, so a lot of people will use it for those reasons.
I have a friend that works for an oil company programming in python and java. He had to write an interpreter in python that takes java code in python code as far as I remember.
fine then........ :P :P :P
whatdoyougetwhenyoumultiplysixbynine??
thanks a lot for that answer. I couldn't find the answer anywhere else.
The reason why I am asking is that I want to make a cd encryptor. So if I have a large .exe on my cd I don't want to copy the thing to a temp file on my drive, decrypt it, than run it. I also don't want to put the whole thing in ram. I want to link my application with the .exe. So that when the file gets clicked. My application starts and than decides whether to allow the .exe to run. I thought I could do that with assembly, but am not sure how. Is there an easier way for me to do it?
Bookmarks