[Eric-develop] Inline Assembly.
Status: Pre-Alpha
Brought to you by:
andrew_turner
|
From: Gavin R. B. <ga...@ga...> - 2001-09-01 02:22:43
|
Guys,
I think that we should move away from the use of inline assembly for the
following reasons:
a) Syntax like __asm__ *yech*
b) AT&T assembler looks even more unreadable when inline.
c) We can stuff all the complexity into a separate .S file.
By using .S files to define assembler functions, (to interface to C++),
we can modularise our code, streamline our C++ source, and generally
control complexity.
If we continue using __asm__, we will get ourselves stuck.
To create a function skeleton in assembler use the following syntax:
gcc -S test.cpp test.S
given that test.cpp contains:
#include "test.h"
void test::test()
{
}
All the best,
Gavin.
PS. Ramkumar, I have emailed my tutor, asking that I can take a year
out. Perhaps I could get a deferred entrance to Berkeley, Stanford or
CSU? d;-)
|