A
A
armadillo-cld2020-10-27 15:58:19
assembler
armadillo-cld, 2020-10-27 15:58:19

Remove function size indication?

I am writing a NASM application for Win32.
The gcc linker Annoys
me forever specifying the size of the function:
[email protected], [email protected]etc.
Is it possible to somehow remove this, and just declare: _MessageBox, _ExitProcess, like with msvcrt: _printf, __getchetc?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2020-10-27
@jcmvbkbc

I'm annoyed by the eternal indication of the size of the function

It's not the size of the function. This is the size of the passed parameters. And that's part of the stdcall ABI documented here , not related to gcc.
Is it possible to somehow remove this, and simply declare: _MessageBox, _ExitProcess, as with msvcrt: _printf, __getch, etc?

In assembler? Well, except perhaps by writing a macro for each of these functions.

M
Mercury13, 2020-10-27
@Mercury13

Depends on what you're linking to.
If you call ld directly - --kill-at.
If gcc - then -Wl, --kill-at like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question