pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.21k stars 356 forks source link

Improving FFI Marshalling of Constants #17409

Closed tesonep closed 3 days ago

tesonep commented 3 days ago

When a ffi call uses a constant, we can avoid transforming the constant in the correct value every time, we can do it in the generation of the method. For example, if we have a void* 0, as a parameter we can put directly the external address.