[DiscordArchive] <@283455627538333696> what for? I can use Cython with native types?
[DiscordArchive] <@283455627538333696> what for? I can use Cython with native types?
Archived author: Quantam • Posted: 2018-10-13T12:28:49.020000+00:00
Original source
https://en.wikipedia.org/wiki/X86_callin...onventions
[Embed: X86 calling conventions]
This article describes the calling conventions used when programming x86 architecture microprocessors.
Calling conventions describe the interface of called code:
The order in which atomic (scalar) parameters, or individual parts of a complex parameter, are allocated
How para...
https://en.wikipedia.org/wiki/X86_calling_conventions
Archived author: Quantam • Posted: 2018-10-13T12:29:19.115000+00:00
Original source
Looks like each OS only has one x64 calling convention, so you can just use the default for x64
Archived author: Skarn • Posted: 2018-10-13T12:29:58.137000+00:00
Original source
I just don't get why it is so low level
Archived author: Skarn • Posted: 2018-10-13T12:30:11.266000+00:00
Original source
all other libs I worked with were like... int, float, etc
Archived author: Skarn • Posted: 2018-10-13T12:30:17.043000+00:00
Original source
nothing so low level
Archived author: Skarn • Posted: 2018-10-13T12:30:26.991000+00:00
Original source
so it worked on any system without doing this mumbo jumbo
Archived author: Quantam • Posted: 2018-10-13T12:31:21.446000+00:00
Original source
Well, things are pretty simple now. But there used to be a number to choose from that were optimized for different thtings
Archived author: Quantam • Posted: 2018-10-13T12:32:10.594000+00:00
Original source
And there were no standards, just different conventions that arose from assembly code by different people
Archived author: Quantam • Posted: 2018-10-13T12:33:27.909000+00:00
Original source
Windows used an older standard for backward compatibility with 16-bit Windows, but that didn't allow variable numbers of arguments, so that was usually not the default for C compilers. Then FASTCALL came around and saved several cycles each call, but wasn't compatible with either
Archived author: Quantam • Posted: 2018-10-13T12:35:04.058000+00:00
Original source
THEN they came out with link-time code generation which could produce totally custom calling conventions for each function to maximize speed, generating code that resembled hand-written assembly with no convention at all