Pascal + AxRuntime

deadwood · 1560

magorium

  • Senior Member
  • ****
    • Posts: 373
    • Karma: +50/-0
  • Convicted non contributor
Reply #60 on: March 21, 2022, 07:49:41 AM
What I wanted to say is that this change does not affect current applications that I tested, so there is no immediate need for re-compilation. It might be just luck that applications don't access the effected fields of affected structures.
Like that, yes indeed.


Therefor it is good to know (for sure) if anything goes wrong (if at all) that there is a possible cause, especially in case the code depends on these structures.


Quote
As for second part of your question: this change was already present in AxRuntime from beginning and now its synchronized to ABIv11. It will not make it to official aros.org build - it's specific to my builds.
That is good to know as well. In case it does have issues, then a change must be made to FPC in order to support all targets.


Thank you for clearing that up !


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1001
    • Karma: +103/-0
Reply #61 on: March 24, 2022, 08:41:42 AM
@magorium

I pushed an update to alt-runtime branch. It is now possible to pass command line arguments to your program when started from linux console. For this I had to change the signature of __kick_start function (https://github.com/deadw00d/AROS/blob/4ac824e890b4ed0f623e16bb30a4818c5c835066/arch/all-runtime/axrt/startup/startup.c#L107). You will also need to create empty C, Libs and S directories in your ~/.axrt/ directory or Shell will flash each time you start a program.