Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

Will 'Hello World' program created in Windows based PC using gcc compiler run in embedded linux based system?

I purchased MCIMX8QXP-CPU: i.MX 8QuadX-Plus Multisensory Enablement Kit (MEK) from NXP.
https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/i.mx-8quadxplus-multisensory-enablement-kit-mek:MCIMX8QXP-CPU

This evaluation kit has some linux distribution that boots from SD card.  I use PC serial terminal program puTTy to communicate with this board.  I can see the file system is
mounted. I can type linux commands to navigate the file system.

I want to run 'Hello World' program in this board.  Using windows based PC, I used eclipse IDE with MinGW Toolchain (I installed gcc compiler from www. equation.com) website.  I created 'Hello World' program.   Is this gcc compiler intended for native use?  Or does it also apply to linux ?
If I can store my 'Hello World' executable in file system inside the board, will embedded linux execute this program?
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can run a windows executable binary into a Linux environment with wine.
Avatar of noci
noci

@pierre Francois: you will need Wine & Qemu as well because the target archtecture is ARM. (i.MX8 is a ARM 64b chipset.).
Avatar of naseeam

ASKER

>> That will most probably NOT work.
Will it work if I choose Cross GCC toolchain in eclipse IDE instead of choosing MinGW toolchain?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naseeam

ASKER

>> did you check if it has a toolchain?
How do I find out?  I posted link in my original question.  There is a Document and Software tab.  Which one of the documents will tell me if there is complete toolchain on the board?  Am I  looking for things like gcc compiler and vi editor?
The board comes with some Android Linux.  I connect to board to PC serial terminal running puTTy.
I can navigate the file system on board through puTTy.
Visit https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/i.mx-8quadxplus-multisensory-enablement-kit-mek:MCIMX8QXP-CPU for access to Linux related docs.

You must register to get access to the Linux docs.

My guess is, as noci suggested, likely all the tools you require are already available.

Best answers will come from contacting NXP for info about toolchain support.
Avatar of naseeam

ASKER

Great solutions!  Thank you!
A tool-chain is a set of libraries of the target OS, target run time environment (mosty C-rtl ,possibly other lbraries).
as wel as a linker, compiler, librarian, etc. etc.
(the development tools).