Home
last modified time | relevance | path

Searched +full:gcc +full:- +full:5 (Results 1 – 25 of 70) sorted by relevance

123

/Zephyr-latest/cmake/linker/ld/gcc/
Dlinker_flags.cmake1 # The coverage linker flag is specific for gcc.
7 set_property(TARGET linker PROPERTY coverage -lgcov)
10 check_set_linker_property(TARGET linker APPEND PROPERTY gprof -pg)
12 # GCC 11 by default emits DWARF version 5 which cannot be parsed by
14 add_link_options(-gdwarf-4)
17 set_property(TARGET linker PROPERTY warnings_as_errors -Wl,--fatal-warnings)
19 set_linker_property(PROPERTY specs -specs=)
/Zephyr-latest/cmake/compiler/gcc/
Dcompiler_flags.cmake3 -Werror=implicit-int
4 -Wold-style-definition
5 -Wno-pointer-sign
9 # Setting compiler properties for gcc / g++ compilers. #
15 set_compiler_property(PROPERTY no_optimization -O0)
17 set_compiler_property(PROPERTY optimization_debug -O0)
19 set_compiler_property(PROPERTY optimization_debug -Og)
21 set_compiler_property(PROPERTY optimization_speed -O2)
22 set_compiler_property(PROPERTY optimization_size -Os)
23 set_compiler_property(PROPERTY optimization_size_aggressive -Oz)
[all …]
/Zephyr-latest/boards/openisa/rv32m1_vega/doc/
Dindex.rst8 The VEGAboard contains the RV32M1 SoC, featuring two RISC-V CPUs,
9 on-die XIP flash, and a full complement of peripherals, including a
10 2.4 GHz multi-protocol radio. It also has built-in sensors and
11 Arduino-style expansion connectors.
13 The two RISC-V CPUs are named RI5CY and ZERO-RISCY, and are
15 `RI5CY`_ and `ZERO-RISCY`_. RI5CY is the "main" core; it has more
16 flash and RAM as well as a more powerful CPU design. ZERO-RISCY is a
17 "secondary" core. The main ZERO-RISCY use-case is as a wireless
30 RV32M1 multi-core SoC:
32 - 1 MiB flash and 192 KiB SRAM (RI5CY core)
[all …]
/Zephyr-latest/tests/kernel/fpu_sharing/generic/src/
Dfloat_regs_arc_gcc.h3 * @brief ARC GCC specific floating point register macros
9 * SPDX-License-Identifier: Apache-2.0
16 #error __FILE__ goes only with ARC GCC
51 "sr %1, [%5];\n\t" in _load_all_float_registers()
83 "lr %1, [%5];\n\t" in _store_all_float_registers()
100 * that pends and triggers a co-operative context switch to a low priority
Dpi.c2 * Copyright (c) 2011-2014 Wind River Systems, Inc.
5 * SPDX-License-Identifier: Apache-2.0
24 * pi = 4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 - ... )
54 * Test counters are "volatile" because GCC wasn't properly updating
56 * in its error handling logic -- the value was incremented in a register,
77 FP_TYPE sign = FP_CONSTANT(-1.0); in calculate_pi_low()
83 sign = FP_CONSTANT(-1.0); in calculate_pi_low()
90 sign *= FP_CONSTANT(-1.0); in calculate_pi_low()
116 FP_TYPE sign = FP_CONSTANT(-1.0); in calculate_pi_high()
124 sign = FP_CONSTANT(-1.0); in calculate_pi_high()
[all …]
/Zephyr-latest/include/zephyr/toolchain/
Dgcc.h2 * Copyright (c) 2010-2014,2017 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
11 #error Please do not include toolchain-specific headers directly, use <zephyr/toolchain.h> instead
16 * @brief GCC toolchain abstraction
18 * Macros to abstract compiler capabilities for GCC toolchain.
24 /* GCC supports #pragma diagnostics since 4.6.0 */
40 * Older versions of GCC do not define __BYTE_ORDER__, so it must be manually
41 * detected and defined using arch-specific definitions.
79 * GCC 4.6 and higher have the C11 _Static_assert built in and its
125 /* The GNU assembler for Cortex-M3 uses # for immediate values, not
[all …]
/Zephyr-latest/boards/cdns/xt-sim/doc/
Dindex.rst1 .. zephyr:board:: xt-sim
7 synthesizable 32-bit RISC processor core. Processor and SOC vendors can select
11 For more information, see https://ip.cadence.com/ipportfolio/tensilica-ip/xtensa-customizable
18 - sample_controller
35 Only Xtensa tools version ``RF-2016.4-linux`` or later are officially
38 In order to set up the Zephyr OS build system, a Linux 32-bit GCC compiler must
39 be installed on the building linux box. Install GCC if needed either by
42 On Debian/Ubuntu systems, you can install ``gcc-multilib`` package as follows:
44 .. code-block:: console
46 #aptitude install gcc-multilib # Or what ever package manager (apt, apt-get, ...)
[all …]
/Zephyr-latest/cmake/sca/eclair/ECL/
Dadopted_deviations.ecl1 -setq=CPP_MANUAL,"https://gcc.gnu.org/onlinedocs/gcc-10.3.0/cpp.pdf"
3 -doc="Selection for reports that are fully contained in adopted code."
4 -report_selector+={adopted_report,"all_area(!kind(culprit||evidence)||all_loc(all_exp(adopted||pseu…
6 -doc_begin="Adopted code is not meant to be read, reviewed or modified by human programmers:no deve…
7 -config=MC3R1.R7.2,reports+={relied,adopted_report}
8 -config=MC3R1.R10.3,reports+={relied,adopted_report}
9 -config=MC3R1.R10.6,reports+={relied,adopted_report}
10 -config=MC3R1.R12.1,reports+={relied,adopted_report}
11 -doc_end
13 -doc_begin="Macro LOAPIC_BASE_ADDRESS, automatically generated by Autoconf, expands to an implicitl…
[all …]
Dcall_properties.ecl2 -call_properties+={"name(z_phys_map)", {"pointee_read(1=never)","pointee_write(1=always)","taken()"…
3 -call_properties+={"name(pcie_get_mbar)", {"pointee_read(3=never)","pointee_write(3=maybe)","taken(…
4 -call_properties+={"name(k_mem_region_align)", {
8 -call_properties+={"name(pentry_get)", {
12 -call_properties+={"name(z_phys_unmap)", {"pointee_read(1=never)","pointee_write(1=never)"}}
13 -call_properties+={"name(check_sum)", {"pointee_read(1=always)","pointee_write(1=never)"}}
14 -call_properties+={"name(z_impl_device_get_binding)", {"pointee_read(1=maybe)","pointee_write(1=may…
15 -call_properties+={"name(z_setup_new_thread)", {"pointee_read(10=maybe)","pointee_write(10=never)",…
16 -call_properties+={"name(mbox_message_put)", {"pointee_read(3=always)","pointee_write(3=always)"}}
17 -doc_begin="The functions can be implemented using the GCC built-in functions.
[all …]
/Zephyr-latest/drivers/dma/
Ddma_xilinx_axi_dma.c7 * SPDX-License-Identifier: Apache-2.0
40 /* internal DMA error, e.g., 0-length transfer */
59 /* interrupt timeout - trigger interrupt after X cycles when no transfer. Unit is 125 * */
62 /* irqthreshold - this can be used to generate interrupts after X completed packets */
84 /* run-stop */
118 /* RS (run-stop) in DMACR is 0 and operations completed; writing tail does nothing */
147 /* in-memory descriptor, read by the DMA, that instructs it how many bits to transfer from which */
150 /* next descriptor[31:6], bits 5-0 reserved */
166 /* application-specific fields used, e.g., to enable checksum offloading */
216 /* this should always be 2 - one for TX, one for RX */
[all …]
/Zephyr-latest/subsys/bluetooth/controller/util/
Dmem.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief Force compiler to place memory at-least on a x-byte boundary
11 * @details Compiler extension. Supported by GCC and Clang
23 * (y>>2) as a floored division, which is almost undone by the left-shift. The
32 * MROUND( 5) = 8
/Zephyr-latest/tests/kernel/fatal/exception/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
31 #define PRIORITY 5
38 alt_stack + (STACKSIZE - OVERFLOW_STACKSIZE);
51 static ZTEST_DMEM volatile int expected_reason = -1;
55 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
57 if (expected_reason == -1) { in k_sys_fatal_error_handler()
76 expected_reason = -1; in k_sys_fatal_error_handler()
174 expected_reason = -2; in entry_arbitrary_reason_negative()
176 z_except_reason(-2); in entry_arbitrary_reason_negative()
196 #pragma GCC diagnostic push
[all …]
/Zephyr-latest/scripts/west_commands/zspdx/
Dlicenses.py3 # SPDX-License-Identifier: Apache-2.0
5 # from https://github.com/spdx/license-list-data/
11 "389-exception",
14 "AFL-1.1",
15 "AFL-1.2",
16 "AFL-2.0",
17 "AFL-2.1",
18 "AFL-3.0",
19 "AGPL-1.0",
20 "AGPL-1.0-only",
[all …]
/Zephyr-latest/samples/subsys/llext/shell_loader/
DREADME.rst1 .. zephyr:code-sample:: llext-shell-loader
3 :relevant-api: llext_apis
18 to any LLEXT-supported target.
25 .. zephyr-app-commands::
26 :zephyr-app: samples/subsys/llext/shell_loader
44 .. code-block:: console
46 $ ninja -C build -vvv hello_world_ext
48 On a host machine with the Zephyr SDK and the ``arm-zephyr-eabi`` toolchain in
49 ``PATH``, you can also obtain the same result directly with ``gcc``:
51 .. code-block:: console
[all …]
/Zephyr-latest/samples/tfm_integration/tfm_ipc/
DREADME.rst1 .. zephyr:code-sample:: tfm_ipc
2 :name: TF-M IPC
4 Implement communication between the secure and non-secure images using IPC.
9 This is a simple TF-M integration example that can be used with an ARMv8-M
12 It uses **IPC Mode** for communication, where TF-M API calls are made to the
16 Zephyr uses Trusted Firmware (TF-M) Platform Security Architecture (PSA) APIs
18 non-secure configuration.
20 The sample prints test info to the console either as a single-thread or
21 multi-thread application.
23 The sample reboots after 5 seconds to demonstrate rebooting with TF-M.
[all …]
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/
Darm_interrupt.c4 * SPDX-License-Identifier: Apache-2.0
13 static volatile int expected_reason = -1;
22 #define PRIORITY 5
31 (pEsf->basic.r0 == 0) && (pEsf->basic.r1 == 1) && (pEsf->basic.r2 == 2) && in check_esf_matches_expectations()
32 (pEsf->basic.r3 == 3) && (pEsf->basic.lr == 15) && in check_esf_matches_expectations()
33 (*(uint16_t *)pEsf->basic.pc == expected_fault_instruction); in check_esf_matches_expectations()
36 return -1; in check_esf_matches_expectations()
40 const struct _callee_saved *callee_regs = pEsf->extra_info.callee; in check_esf_matches_expectations()
42 (callee_regs->v1 /* r4 */ == 4) && (callee_regs->v2 /* r5 */ == 5) && in check_esf_matches_expectations()
43 (callee_regs->v3 /* r6 */ == 6) && (callee_regs->v4 /* r7 */ == 7) && in check_esf_matches_expectations()
[all …]
/Zephyr-latest/boards/rakwireless/rak5010/doc/
Dindex.rst6 WisTrio NB-IoT Tracker Pro (RAK5010) is a tracker
13 and indoor scenarios, where location-based services need be present.
15 The built-in sensors for RAK5010 are temperature and
17 The extension IOs allow adding more sensors in addition to the on-board ones.
21 requiring NB-IoT connectivity. Application development
22 supports the GCC environment.
27 - nRF52840 ARM Cortex-M4F Processor
28 - 32.768 kHz crystal oscillator
29 - 1 Micro-AB USB OTG host/device
30 - Quectel BG96, with LTE CAT M1, LTE NB1, and GNSS
[all …]
/Zephyr-latest/tests/ztest/error_hook/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
14 #define THREAD_TEST_PRIORITY 5
46 * Do not optimize to prevent GCC from generating invalid
58 * Do not optimize to prevent GCC from generating invalid
82 * Note: this is not applicable for ARM Cortex-M: in trigger_fault_access()
83 * In Cortex-M, nPRIV read access to address 0x0 is generally allowed, in trigger_fault_access()
85 * 0x0. So, de-referencing NULL pointer is not guaranteed to trigger an in trigger_fault_access()
98 * Do not optimize the divide instruction. GCC will generate invalid
116 * For the Cortex-M0, M0+, M23 (CONFIG_ARMV6_M_ARMV8_M_BASELINE) in trigger_fault_divide_zero()
119 * For ARMv8-R, divide by zero trapping is not supported in hardware. in trigger_fault_divide_zero()
[all …]
/Zephyr-latest/tests/lib/c_lib/common/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
14 * NOT guarantee that ALL standards-defined functionality is present, nor does
49 /* Recent GCC's are issuing a warning for the truncated strncpy()
50 * below (the static source string is longer than the locally-defined
55 #pragma GCC diagnostic ignored "-Wstringop-truncation"
70 * @brief Test implementation-defined constants library
85 return -1; in foobar()
145 && (INT8_C(-1) == -1) \ in ZTEST()
147 && (INT16_C(-2) == -2) \ in ZTEST()
149 && (INT32_C(-4) == -4) \ in ZTEST()
[all …]
/Zephyr-latest/samples/tfm_integration/psa_crypto/
DREADME.rst1 .. zephyr:code-sample:: tfm_psa_crypto
2 :name: TF-M PSA crypto
8 This TF-M integration example demonstrates how to use the PSA crypto API in
10 this example also demonstrates certain TF-M features that are covered as part
15 Trusted Firmware (TF-M) Platform Security Architecture (PSA) APIs
17 non-secure processing environment.
20 handle secure TF-M API calls and responses.
22 The sample prints test info to the console either as a single-thread or
23 multi-thread application.
26 https://www.psacertified.org/security-certification/psa-certified-level-1/
[all …]
/Zephyr-latest/boards/renesas/ek_ra8m1/doc/
Dindex.rst6 The EK-RA8M1 is an Evaluation Kit for Renesas RA8M1 MCU Group which is the first
7 32-bits MCUs based on new Arm Cortex-M85. The kit offer multiple external interface
11 The key features of the EK-RA8M1 board are categorized in three groups as follow:
15 - 480MHz Arm Cortex-M85 based RA8M1 MCU in 224 pins, BGA package
16 - Native pin acces througgh 2 x 50-pin, and 2 x 40-pin male headers
17 - MCU current measurement points for precision current consumption measurement
18 - Multiple clock sources - RA8M1 MCU oscillator and sub-clock oscillator crystals,
24 - USB Full Speed Host and Device (micro-AB connector)
25 - Four 5V input sources
27 - USB (Debug, Full Speed, High Speed)
[all …]
/Zephyr-latest/cmake/ide/
Declipse_cdt4_generator_amendment.cmake1 # SPDX-License-Identifier: Apache-2.0
17 #2. Eclipse CDT4 indexer has problems with CMake 'Eclipse CDT4 - x'
22 # The root cause of the problem is the g++ built-in __cplusplus macro,
56 # 1 - work mode: "C and CXX includes, defines in .cproject without __cplusplus"
57 # 2 - work mode: "C and CXX includes, defines in .cproject with __cplusplus"
58 # 5 - work mode: "C and CXX includes, defines in Eclipse with project defines"
64 ## 3 - work mode: "C and CXX includes, defines in .settings - [EXPERIMENTAL]"
65 ## 4 - work mode: "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]"
77 # set(_work_mode "C and CXX includes, defines in .settings - [EXPERIMENTAL]")
81 # set(_work_mode "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]")
[all …]
/Zephyr-latest/boards/renesas/ek_ra8d1/doc/
Dindex.rst6 The EK-RA8D1 is an Evaluation Kit for Renesas RA8D1 MCU Group which are the industry’s first 32-bit
7 graphics-enabled MCUs based on the Arm Cortex-M85 (CM85) core, delivering breakthrough performance
8 of over 3000 Coremark points at 480 MHz and superior graphics capabilities that enable high-resolut…
11 The key features of the EK-RA8D1 board are categorized in three groups as follow:
15 - 480MHz Arm Cortex-M85 based RA8D1 MCU in 224 pins, BGA package
16 - Native pin acces througgh 2 x 50-pin, and 2 x 40-pin male headers
17 - MCU current measurement points for precision current consumption measurement
18 - Multiple clock sources - RA8D1 MCU oscillator and sub-clock oscillator crystals,
24 - USB Full Speed Host and Device (micro-AB connector)
25 - Four 5V input sources
[all …]
/Zephyr-latest/tests/lib/mem_alloc/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
15 * NOT guarantee that ALL standards-defined functionality is present, nor does
23 #pragma GCC diagnostic push
24 #pragma GCC diagnostic ignored "-Walloc-size-larger-than="
39 * @brief Test implementation-defined constants library
92 /* Make sure we can access some built-in types. */
95 aptr->thelonglong = 2; in do_the_access()
96 aptr->thelonglong; in do_the_access()
99 aptr->thedouble = 3.0; in do_the_access()
100 aptr->thedouble; in do_the_access()
[all …]
/Zephyr-latest/tests/unit/cbprintf/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
96 /* We can't determine at build-time whether int is 64-bit, so assume
138 /* This has to be more than 255 so we can test over-sized widths. */
158 int idx = outbuf->idx - ((outbuf->idx == outbuf->size) ? 1 : 0); in outbuf_null_terminate()
160 outbuf->buf[idx] = 0; in outbuf_null_terminate()
168 if (buf->idx < buf->size) { in out()
169 buf->buf[buf->idx++] = (char)(unsigned char)c; in out()
253 CBPRINTF_STATIC_PACKAGE(&package[PKG_ALIGN_OFFSET], _len - 1, \
256 zassert_equal(st_pkg_rv, -ENOSPC); \
297 printf("%s:%u for '%s'\n", ctx->file, ctx->line, ctx->expected); in prf_failed()
[all …]

123