Abstract: The standard libraries are a set of predefined libraries that come with most programming languages, providing essential functionalities to facilitate software development. They offer implementations of functions and routines that address common needs, preventing developers from having to rewrite basic and complex code, thus increasing productivity and program reliability. Among the standard libraries, one of the most commonly used is the math library, which contains essential functions for performing calculations, as well as operations such as trigonometry, exponentiation, logarithms, and others, frequently used in various areas of science. This work investigated alternatives for implementing mathematical functions in the Robotics Language, developed at the Federal University of Jataí. Six mathematical functions were implemented and evaluated: sine, cosine, tangent, exponential, logarithm, and square root, using alternative algorithms such as CORDIC for trigonometric operations. The execution time and object code size were evaluated for the AVR and STM32 platforms. The initial results indicated that the algorithms are functionally adequate and accurate but not competitive in terms of execution time and object code size, considering the current development stage of Robcmp and the AVR and ARM backends of LLVM.

Keywords: Programming language; CORDIC; Standard library; Robcmp.

Complete monograph. Copyright © 2024. All rights reserved.

Disclaimer: Although the student carefully wrote the original abstract, and it was revised and improved, English is not him or the advisor' mother language. The original work is written in Portuguese.

Citation: Ryan Francys Mendes dos Santos. Projeto e Implementação da Biblioteca Padrão de uma Linguagem de Programação Específica do Domínio da Robótica: Funções Matemáticas. Monografia. Bacharelado em Ciência da Computação. Universidade Federal de Jataí. Jataí, GO, Brasil. 2024. 49p.

Copy citation in bibtex format.