Forum > Embedded - ARM

Paths manually specified.

(1/2) > >>

funlw65:
Sometimes I use JALv2 compiler for PIC projects... compiler executable is accessed directly and paths to the include files are specified in the command line.

Because of this, you can have (if you want) a folder structure like this:

--- Code: ---[your_home_folder]
   |
   o---[jalv2]
         |
         o---[includes]
         |
         jalv2_executable
         

--- End code ---
So, I call the executable with path to [includes] and my project as parameters.

Can I do the same with the ppcrossarm executable, disregarding fpc.cfg and specifying the paths to where I put the RTL units and so on? If it works, will this allow me to have separate folders for targeted RTLs (for different cores)?

Laksen:
Should be possible if you create a new fpc.cfg. I can't remember but I think the compiler might look for fpc.cfg in the same directory in which case you are in luck

funlw65:
yes, that would be ideal! I'll make some tests...

funlw65:
Ok, I think I found a combination of parameters for the configuration files, hopefully it will work...

So first we have:
  @<x>
which specifies a configuration file, but it says it will read it in addition to the default fpc.cfg

but then there is this option:
  -n
which says Do not read the default configuration files.

So, no fpc.cfg for you, but I will read the configuration file you delivered...
I am right? I'll test this.

MiR:
You can use the configuration done in fpcupdeluxe as a base for your experiments, there all is in place to have several subarchs/fp-abi's in parallel.
However, $FPCABI was added recently to the compiler, so you will need to compile a trunk compiler for it to work.
This of course depends on your needs. If you do not need to distinguish between floating point implementations then prod compilers will also work well.

# begin fpcup do not remove arm-embedded
# Inserted by fpcup 11-3-21 22:37:43
# Cross compile settings dependent on both target OS and target CPU
#IFDEF FPC_CROSSCOMPILING
#IFDEF EMBEDDED
#IFDEF CPUARM
#IFDEF CPUARMV6M
-CaEABI
#ENDIF CPUARMV6M
#IFDEF CPUARMV7EM
-CfFPV4_SP_D16
-OoFASTMATH
-CaEABIHF
#ENDIF CPUARMV7EM
#IFDEF CPUARMV7M
-CaEABI
#ENDIF CPUARMV7M
-FD/Users/ring/fpcupdeluxe/cross/bin/arm-embedded/
-XParm-none-eabi-
-Fl/Users/ring/fpcupdeluxe/cross/lib/arm-embedded/$FPCSUBARCH/$FPCABI/
-Fu/Users/ring/fpcupdeluxe/fpc/units/arm-embedded/$FPCSUBARCH/$FPCABI/rtl
-Fu/Users/ring/fpcupdeluxe/fpc/units/arm-embedded/$FPCSUBARCH/$FPCABI/packages
#ENDIF CPUARM
#ENDIF EMBEDDED
#ENDIF FPC_CROSSCOMPILING
# end fpcup do not remove


Navigation

[0] Message Index

[#] Next page

Go to full version