Skip to content

Commit

Permalink
arc: emsdp: Add more platform-specific compiler options
Browse files Browse the repository at this point in the history
Even though EM SDP is FPGA-based board and different FPGA
images (known as .bit-files) are awailable for the board still
there's a common subset of options we may rely on for all configs.

These are:
 * Normalizer
 * Swap instructions
 * Simple multiplier
 * Barrel-shifter
 * Floating-point unit
 * Shorter instructions (code density)

This among other improvements allows to compile code with
64-bit divisions, see [1].

[1] https://patchwork.ozlabs.org/patch/1156541/

Signed-off-by: Alexey Brodkin <[email protected]>
Cc: Kever Yang <[email protected]>
  • Loading branch information
abrodkin committed Sep 3, 2019
1 parent fbf8c50 commit 968b98b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/synopsys/emsdp/config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PLATFORM_CPPFLAGS += -mlittle-endian -mnorm -mswap -mmpy-option=3 \
-mbarrel-shifter -mfpu=fpuda_all -mcode-density

0 comments on commit 968b98b

Please sign in to comment.