Mail Archives: djgpp/1999/04/05/17:08:39
Martin Str|mberg wrote:
> The extra slack is because your memchr_alias() function takes
> arguments.
>
> Try
> asm("
> .text
> .align 2,0x90
>
> .globl _memchr_alias
> _memchr_alias:
>
> jmp _memchr
>
> ");
>
> but note that my version of memchr_alias() doesn't take any
> arguments. Hence some massaging is necessary.
Actually not; the `jmp' will leave all the arguments as they were, so it
doesn't matter what arguments the target wants.
All you need to make that compile is a declaration of memchr_alias,
claiming it takes args like memchr.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -