Recent

Author Topic: RTL: little changes  (Read 2019 times)

Fibonacci

  • Hero Member
  • *****
  • Posts: 649
  • Internal Error Hunter
RTL: little changes
« on: December 26, 2024, 01:06:40 am »
I have my own way to do it, but maybe there is a better one.

So I want to edit the RTL. Say I want to change the actual entrypoint function, so I edit sysinitpas.pp and change one line, now how do I compile just that unit and use it in my project without rebuilding the whole RTL?

jamie

  • Hero Member
  • *****
  • Posts: 6798
Re: RTL: little changes
« Reply #1 on: December 26, 2024, 01:46:42 am »
if there was some benefit for the general public, wouldn't they have done that already?

Why don't you ask for the feature?


In any case, you need to use a boot compiler normally one version less to rebuild it.

Jamie

The only true wisdom is knowing you know nothing

Leledumbo

  • Hero Member
  • *****
  • Posts: 8785
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: RTL: little changes
« Reply #2 on: December 26, 2024, 11:04:35 am »
Say I want to change the actual entrypoint function, so I edit sysinitpas.pp and change one line, now how do I compile just that unit and use it in my project without rebuilding the whole RTL?
After compilation, move the .o and .ppu to overwrite the same files in the RTL directory. I'm not sure if there are other units depend on sysinitpas, but if there are, they will need to be rebuilt, recursively (meaning what depend on them will need to be rebuilt as well). Alternatively, specifying -Fu to the directory where the .o and .ppu reside MIGHT work (no promises, but easy to prove) as the compiler will prioritize searching on user supplied directories first.

 

TinyPortal © 2005-2018