pthread locking code - C vs. ASM
Mike Frysinger
vapier@gentoo.org
Mon Jan 21 22:19:00 GMT 2008
On Monday 21 January 2008, Gilles Carry wrote:
> Is asm code supposed to do exactly the same as C code?
of course ... things would be broken otherwise
> I recently had a case when I wanted to modify pthread_cond_signal.c and it
> did not compile because of unexisting syscall macros.
you probably didnt include the right headers
> Should C code be the reference? Should asm be modified only when we are
> sure C is ok? It is a problem when people change asm code without updating
> the underlying C files.
you should modify whatever your target platform uses
then again, i'd wonder why you were mucking around the libc code in the first
place ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20080121/2f9d351c/attachment.sig>
More information about the Libc-alpha
mailing list