Re: Phix: c-struct
- Posted by andreasWagner 1 week ago
- 150 views
Hello,
Somehow I couldn't resist responding.
Which emits the perfect super-fast machine code to do these things. One day, maybe, but probably not soon.
To clarify: hll code using dot notation calling generic code in builtins/structs.e is daft compared to asm.
The #ilASM would just treat mov [eax.top], 10 as if it said mov dword[eax+4], 10 ie automate size/offset.
Please do not take the following text as criticism. It is simply my opinion and also the reason why I program in HLL.
Even though I am sure that such function calls in assembler are extremely fast and flexible and can cover all special cases in function calls.
I am also certain that the effort involved in writing all calls in assembler, especially if the code is to support multiple architectures (e.g., 32/64-bit), is disproportionate to the result for a simple hobby programmer like me.
So in the future, I will probably always use Phix system_exec() instead of trying to use CreateProcessEx from the WinApi in an assembler routine in the hope that something would run faster or be more optimized.
Maybe not a good example, but hopefully it explains my point of view.

