score:0
short answer: makefile.
but i guess neon assemblies are a bigger issue.
using intrinsics instead is at least open to the possibility to link to a simulator library, and there are indeed a lot of such libraries written in standard c that allow code with intrinsics to be portable.
however the poor performance of gcc neon intrinsics forces a lot of people to sacrifice portability for performance.
if your code unfortunately contains assembly, you won't be able to even compile the code before translating assemblies back to standard c.
score:1
as noted above you need a makefile pointing at two different targets with different compiler options depending on the target.
you will need to ensure portability in your code.
i have accomplished this most often using cmake and outlining different compiler paths and linker flags for unit tests versus the target. this way i can also easily link in any unit test libraries while keeping them external to my target. in the end cmake produces a makefile but i'm not spending time worrying about make syntax which while i can read often seems like voodoo.
doing this entirely within a single eclipse project is possible. you need to configure your project for multiple targets with different compilers used for each and will require some coaxing to get eclipse to behave.
if you're goal is to do it entirely within eclipse i suggest reading this as a primer.
if you want to go the other route, here is a cmake primer.
Source: stackoverflow.com
Related Query
- embedded c code and unit tests without cross compile
- How can I have unit and functional tests for my android independent calsses without needing a device?
- Ignore code coverage for unit tests in EclEmma
- Do not run a category of slow JUnit tests by default in Maven and every IDE (Eclipse, IntelliJ, ...) without an explicit TestSuite
- How to launch unit tests under EclEmma without using the VisualVM launcher with that launcher installed
- Can I compile a Scala project with mixed java and scala code with dependencies both ways in Maven?
- How do you develop in Javascript using unit tests and having some sort of IDE
- Eclipse as an cross platform IDE for C++ code on Linux and Windows
- How to import and compile Android FBReaderJ source code into Eclipse (Windows)?
- How could code and compile Matlab mex files over Eclipse?
- Trying to use lambda for the first time and the code doesn't compile
- Eclipse and Android NDK compile C++ Code in another folder than JNI
- Unit tests work in Eclipse, not in Visual Studio Code
- Maven and POI: package error and to compile the code
- Eclipse Maven - Code Completion fails "This compilation unit is not on the build path of a Java project" and "Failed to Download Index" Error
- Hot code deployment during development with embedded Apache Felix and Eclipse?
- In Android, which Java version should I compile the code for, and how to set it for Ant?
- Maven/Eclipse Attempts to Compile Tests with Main Code
- How to compile and run HelloWorld.java example from Sphinx4 without and IDE in Linux?
- Debugging eclipse unit test code "Test class should have exactly one" and "Workspace is closed" error
- Scala-IDE: How to compile and execute multiple source code files in Eclipse?
- Separate ServiceProviders for Unit Testing and Production Code
- What code can I use for min, max and average for java programming without arrays?
- What code can I use for min, max and average for java programming without arrays?
- Stanford CS106A : Eclipse highlighted my method declaration and code can't compile
- Code Sorcery cross compile give gc1plus
- Is it possible to easily compile and run code in another machine in Visual Studio/Eclipse?
- If I use a Java 8 library to code an application and try to compile it using a Java 6 compiler, will/should the build fail?
- In Eclipse, what can cause Package Explorer "red-x" error-icon when all Java sources compile without errors?
- How to create unit tests easily in eclipse
More Query from same tag
- Image to byte[] to Image
- building development environment for GWT with JBoss
- Add JScrollPane to JPanel
- Pushing from Eclipse to my GitHub repository via HTTPS stopped working: "git-receive-pack not permitted" error
- Can't add Java Applications in Eclipse Run Configurations after upgrading to 4.7
- eclipse and easy eclipse interface differentiation, for casual java programmers
- Eclipse set up issues
- Importing gradle project in AndroidStudio fails
- Eclipse Alt+Shift+J to insert the file comment, how?
- Comparing an int to its old value in Java
- Pure java alternative to GIMP with *live* plugin development?
- Handling different versions of code for beginners?
- access denied ("java.io.FilePermission")
- Using boilerpipe on Android application
- "syso" shortcut in Eclipse- changing a bit behaviour
- JavaFX application not running from command line / how to build and export correctly?
- Android : Java.NullPointerException error on my app
- Increase JTextField height with GridBagLayout
- How do I identify which plugin an Eclipse editor comes from?
- What does this icon mean in Eclipse Project Explorer (a number with an up-arrow)?
- Maven copying Tomcat JARs into webapp WEB-INF/lib directory
- How to debug a tcl script which is argument to an executable?
- Changing Eclipse Error Language
- Making Ctrl-C copy from whichever SourceViewer has focus in Eclipse plug-in
- eclipse error cannot find -l/usr/lib/gcc/x86_64-linux-gnu/4.8/include/libcrypto
- Unable to retrive the data from database. Getting a runtime error. here's an instance of my servlet DBController.java
- Launching GWT dev mode in eclipse debugger
- OpenCV in Java, Junit 4 test case fails with Mat() object
- How to Run pinax inside eclipse?
- Singling out web.xml errors in Eclipse