newbie - how to mix c and assembly linux i386
Hello,
I am currently programming in C via KDeveloper on linux i386. Due to high execution speed requirements of my project, I am planning to port some of my C code to Assembly, and would be happy to do that without sacrifising KDeveloper. (Nice IDE, huh?)
My problem is:
Although experienced in programming, I am a newbie in linux environment! I would be happy to hear your recommendation for mixing C and Assembly. Any recommendations, tutorials, source code examples, etc.? - (Yes, I have searched the web and I am afraid, got very confused) :-(
Thank you.
Kind Regards,
Mert
Hi Mert,
Sincerely i never used KDeveloper, btw i think it doesn´t matter here.. You can mix C and Assembly code using gcc inline assembly, you can find a HOWTO explaining how everything works at
http://ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
Also if you need help in assembly language under linux i386
http://www.linuxassembly.org/ is always a nice start point... Hope it helps.
Regards
Carlos Eduardo Pinheiro - [email protected]
----- Original Message -----
From: "Mert Börü" <[email protected]>
To: <[email protected]>
Sent: Saturday, August 14, 2004 7:08 PM
Subject: newbie - how to mix c and assembly linux i386
Quoted 20 lines
Hello,
I am currently programming in C via KDeveloper on linux i386. Due to high execution speed requirements of my project, I am planning to port some of my C code to Assembly, and would be happy to do that without sacrifising KDeveloper. (Nice IDE, huh?)
My problem is:
Although experienced in programming, I am a newbie in linux environment! I would be happy to hear your recommendation for mixing C and Assembly. Any recommendations, tutorials, source code examples, etc.? - (Yes, I have searched the web and I am afraid, got very confused) :-(
Thank you.
Kind Regards,
Mert
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
HLA v1.69 is now available
HLA v1.69 is now available on the HLA download page at
http://webster.cs.ucr.edu/AsmTools/HLA/dnld.html
HLA, the High-Level Assembler is an assembly language development system that makes learning and using assembly language as easy as working with high-level languages.
HLA runs under both Windows and Linux and well-written programs are portable between the two OSes with nothing more than a recompilation of the source code - a unique feature among assembly languages.
HLA provides the full capabilities of assembly language on the 80x86 processor, while introducing some high-level features to help you learn assembly faster, write assembly code easier than ever before, and write readable and maintainable assembly code.
HLA also provides the "HLA Standard Library", a set of hundreds of different useful utility subroutines that you can call from your assembly language programs. Naturally, full source code for the HLA stdlib is available.
HLA is fully support with thousands of pages of documentation including "The Art of Assembly Language" (published by No Starch Press, http://www.nostarch.com) and hundreds of example programs. See the following URL for the electronic version of AoA and the example code:
http://webster.cs.ucr.edu/AoA/index.html
Other documentation and examples:
http://webster.cs.ucr.edu/AsmTools/HLA/index.html
HLA is open-source and 100% free, public domain, code. There are absolutely no restrictions on the use of HLA and the HLA Standard Library.
HLA v1.69 corrects a couple of defects that would crash the compiler under certain circumstances. This version also includes a completely rewritten set of memory management routines in the HLA Standard Library (higher performance, more portable across OSes, and corrections to various defects).
Cheers,
Randy Hyde