Essential Knowledge for Cross-Compilation: Choosing the Wrong -mfloat-abi Can Slow Floating Point Operations by 100 Times (Including Practical Example with Cortex-M4)

Essential Knowledge for Cross-Compilation: Choosing the Wrong -mfloat-abi Can Slow Floating Point Operations by 100 Times (Including Practical Example with Cortex-M4)

Hello everyone, I am a programmer who loves to share. I am happy to share my experiences and understanding from my work. -begin- In embedded development, the handling of floating point operations directly affects the performance and compatibility of programs, and -mfloat-abi is the key option that controls the floating point operation strategy. It determines … Read more

Five Important Considerations for Microcontroller Embedded Programming

Five Important Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning even one of these languages. This article specifically compiles insights from … Read more

Can Floating-Point Types in C Language Be Accurately Represented?

Can Floating-Point Types in C Language Be Accurately Represented?

Floating-point types in C languageIn C language, floating-point types are commonly referred to as float types.According to the information I have consulted, the floating-point types in C language cannot be accurately represented, whether within their precision or beyond it. What we usually see (or read) is merely an approximate representation of the floating-point type. This … Read more

Cortex Authority Manual – Floating Point Operations

Cortex Authority Manual - Floating Point Operations

Floating Point Representation The representation of floating-point numbers follows the IEEE 754 standard, including single precision, double precision, and half precision floating-point numbers. Each floating-point number has a sign bit, an exponent, and a fraction part. Single Precision Floating Point (32 bits) Bit 31: Sign bit (0 indicates positive, 1 indicates negative). Bits 30-23: Exponent … Read more

The Development of AI Data Formats in NPU Neural Processing Units (6)

The Development of AI Data Formats in NPU Neural Processing Units (6)

Initial Data Formats (6), previous AI acceleration operators (5) are quite numerous, so I won’t release them for now. (INT8、Bfloat、FP8、MSFP、MX) If there is one factor that has driven the significant improvement in the efficiency of artificial intelligence (AI) over the past decade, it is the evolution of data formats. The industry has invested heavily in … Read more

Using Floating Point and Long Division with TLSR8 Chips from TaiLing Micro

Using Floating Point and Long Division with TLSR8 Chips from TaiLing Micro

1 Introduction The TLSR8 series (including B85, B87, B80) from TaiLing does not support hardware floating point operations. In practical applications, we often encounter customer feedback requesting the use of floating point and 64-bit data for multiplication and division operations. A software floating point library can be added to achieve this. After consulting with the … Read more

Exploring C Language Data Types: Integer, Floating-Point, and Character Types – A Must-Read for Programmers!

Exploring C Language Data Types: Integer, Floating-Point, and Character Types - A Must-Read for Programmers!

Click the blue text to follow usData Types in C Language (Integer, Floating-Point, Character) The data types in C define how variables are stored, their range of values, and the operations that can be performed on them. Mastering the basic data types is key to writing efficient programs. This section introduces three core types: Integer, … Read more

Performance Evaluation of Artix 7 Series DSP FP32

Performance Evaluation of Artix 7 Series DSP FP32

The Artix 7 series FPGA provides many DSP hardware units that can be configured for floating-point operations.In the Vivado IP configuration interface, the clock cycle for the module can be selected, and data can be read out after a specified number of clock cycles.The Floating Point IP resource user manual from Vivado.However, it is somewhat … Read more

Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles insights from … Read more

Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles opinions from … Read more