Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NEON instructions not support on OdroidC2

Featured Replies

Hi everyone,

 

I tried to compile some program using neon optimization on odroid C2 with the following arguments in CMake :

IF(IS_ARM)
  SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -mfpu='neon' -march=armv8-a")

But gives me an error not recognizing the command -mfpu='neon' . 

 

Is there a way I give still activate this instruction optimization or should I give up NEON support for the moment ?

 

Thanks !

  • Author

Hi,

 

Thanks a lot for your answer. The code I try to compile was previously made for the Odroid C1, arch was defined as 

-march=armv7-a

I replaced it as 

-march=armv8-a

But I still have some gcc cc1plus error when I try to compile. Would you recommend to set any other stuff to compile it on the C2 ?

 

Thanks

But I still have some gcc cc1plus error when I try to compile. Would you recommend to set any other stuff to compile it on the C2 ?

If you are compiling with -O3 or -O2 flags then compiler should generate efficient enough code. Explicitly defining optimization parameters won't make noticeable difference in most cases, upgrading compiler version (i.e. GCC 4.9 to GCC 5.x or GCC 6.x) may make more difference.

 

For compiler errors - Google is your best friend, and if extra compiler parameters cause these errors, then you will have to use default options.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.