Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

AN3349 Arkusz danych(PDF) 8 Page - STMicroelectronics

Numer części AN3349
Szczegółowy opis  eTPU assembly converter
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3349 Arkusz danych(HTML) 8 Page - STMicroelectronics

Back Button AN3349 Datasheet HTML 4Page - STMicroelectronics AN3349 Datasheet HTML 5Page - STMicroelectronics AN3349 Datasheet HTML 6Page - STMicroelectronics AN3349 Datasheet HTML 7Page - STMicroelectronics AN3349 Datasheet HTML 8Page - STMicroelectronics AN3349 Datasheet HTML 9Page - STMicroelectronics AN3349 Datasheet HTML 10Page - STMicroelectronics AN3349 Datasheet HTML 11Page - STMicroelectronics AN3349 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 13 page
background image
Converter options
AN3349
8/13
Doc ID 018511 Rev 2
3
Converter options
3.1
No warnings
When the -noWarn option is used warnings aren't reported. This option is useful when
converting many file and only the conversion errors are important. For more details about
warnings, see the Chapter 5: Limitations.
3.2
Preprocessing
When the -pp option is used the file is preprocessed before being converted. The
preprocessing is executed using the ccetpu compiler. In the preprocessing stage all the
macros are analyzed and replaced with their values. Only after preprocessing the file, its
conversion starts. This option is useful with c files that use macros in their inline assembly
sections. The converter will not recognize the macros without preprocessing the file first and
therefore the option is necessary in such cases.
Note:
Using this option will cause white space and new line modifications in the file. Spaces and
new lines might be added or removed during the preprocessing stage, and macros will be
replaced with their values, but the actual content of the file will not be modified.
When using this option, the input file is passed through the ccetpu C compiler. Therefore, it
has to follow eTPU c language rules, for example the file must end with a ".c" extension.
Example of the -pp option:
etpu_asm_converter.exe -pp -c c_input.c out.txt
3.3
Debug information
When the -debugE option is used debug information is printed in case of errors. This
information may be useful in order to find Byte Craft syntax errors. Note that this option was
created for development purposes and therefore in many cases the provided information will
probably not be clear or helpful.
This option is mostly useful in chan instruction.
For example:
etpu_asm_converter.exe -m -debugE
chan set flag2.
error in line 3: syntax error, unexpected FREE_TEXT,
expecting FLAG0 or FLAG1.
Table 3.
Preprocessing options
c_input.c
def.h
out.txt
#include "def.h"
#asm
MY_ALU c = REG_B+ VALUE.
MY_CHAN pdcm= sm_dt.
#endasm
#define MY_ALU
alu
#define REG_B
b
#define VALUE
3
#define MY_CHAN chan
#include "def.h"
asm{
addi c,b,3
chmode.sm_dt
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com