Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2017-12

Quickly recompiling fpc

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Benito van der Zander

Hi,

how do you recompile fpc after making a small change in the compiler, like enabling the debugmsg define in x86/aoptx86.pas?

make buildbase says nothing was changed, and make clean; make buildbase recompiles not just the compiler, but also the rtl, which is a waste of time.

Bye,

Benito

Reply by email

Sven Barth
to Benito van der Zander

Am 09.12.2017 14:57 schrieb "Benito van der Zander" :

Hi,
how do you recompile fpc after making a small change in the compiler, like enabling the debugmsg define in x86/aoptx86.pas?

make buildbase says nothing was changed, and make clean; make buildbase recompiles not just the compiler, but also the rtl, which is a waste of time.

Build it in the Lazarus IDE using the corresponding project for your platform (this will result in a compiler/<platform>/pp(.exe) binary). Other than that "make cycle" inside the compiler directory *is* the recommended way to rebuild the compiler even if it rebuilds both the compiler and the RTL multiple times.

Regards,
Sven

Reply by email

Florian Klämpfl
to Benito van der Zander: how do you recompile fpc after making a small change in the compiler, like enabling the…
Benito van der Zander wrote 7 lines
Hi, how do you recompile fpc after making a small change in the compiler, like enabling the debugmsg define in x86/aoptx86.pas? make buildbase says nothing was changed, and make clean; make buildbase recompiles not just the compiler, but also the rtl, which is a waste of time.

For compiler development, I do not use the makefiles, I just use lazarus and work with the executables fpc builds when invoked from lazarus. Alternatively, you can do something like cd fpc/compiler
rm ppc386
make

Reply by email

Ondrej Pokorny
to Sven Barth: how do you recompile fpc after making a small change in the compiler, like enabling the…
Sven Barth wrote 18 lines
Am 09.12.2017 14:57 schrieb "Benito van der Zander" < >: Hi, how do you recompile fpc after making a small change in the compiler, like enabling the debugmsg define in x86/aoptx86.pas? make buildbase says nothing was changed, and make clean; make buildbase recompiles not just the compiler, but also the rtl, which is a waste of time. Build it in the Lazarus IDE using the corresponding project for your platform (this will result in a compiler/<platform>/pp(.exe) binary). Other than that "make cycle" inside the compiler directory *is* the recommended way to rebuild the compiler even if it rebuilds both the compiler and the RTL multiple times.

I only extend: don't forget you can use the "Run Parameters" dialog to debug the modified compiler with a sample PAS program.

Ondrej

Reply by email