Liste des Groupes | Revenir à cl c |
On 11/26/2024 1:42 PM, Thiago Adams wrote:On 26/11/2024 16:25, Bart wrote:
That's still full of problems, unless you impose a stricter type system in what's left of the language (eg. revert to B or even BCPL).Can still sort of work:I don't think so. But you are welcome to look at godbolt.org and see for yourself. Try this for example:>
>
>
Yes..I realized now I am wrong. Considering function calls uses registers I think the old C model works only when passing everything on stack.
>
>
If spill space is provided for any register arguments;
The mapping of arguments to registers does not depend on argument type;
Passing arguments auto-promotes to a consistent representation of the type (say, for example, 'float' auto-promotes to 'double', and 'int' auto-promotes to 'long', ...).
Les messages affichés proviennent d'usenet.