unix and linux operating commands

How to Use Compiler Barriers

 
Thread Tools Search this Thread
# 1  
Old 10-04-2010
How to Use Compiler Barriers

Part 1 - Compiler memory ordering, volatile variables, and compiler barriers: how to keep a compiler from producing errors when optimizing multi-threaded code for performance.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I need the compiler !!! help me

I have the code .section .data format_string: .asciz "Tong la '%d'\n" n: .int 6 .section .text .globl _start _start: movl $0,%esi movl n,%eax movl $0,%ecx loop1: cmp %eax,%ecx je print add %eax,%esi dec %eax jmp loop1 print: movl $format_string, %edi movl $0, %eax (1 Reply)
Discussion started by: toantk_55
1 Replies

2. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies

3. High Performance Computing

Memory Barriers for (Ubuntu) Linux (i686)

Hi all, (Hope this is the right forum for this question) I have some multi-threaded C code (compiled with GCC 4.4.3) which accesses shared variables. Although I've marked those variables with volatile to guard against compiler re-ordering, I'm concerned that processor out-of-order execution... (19 Replies)
Discussion started by: gorga
19 Replies

4. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

5. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

6. Programming

c compiler

i'm using linux to compile my c program right now. are there any free c compiler with all the standard header file, such as <stdio.h>, <unistd.h>..., i can download and use? can Microsoft Visual C++ compile C code? thanks. (1 Reply)
Discussion started by: bb00y
1 Replies

7. Programming

C compiler

I have just installed C compiler, the installation was successful but when I try to excute a gcc file I received the error message "types.c: In function `main': > types.c:4: warning: return type of `main' is not `int' > ld: fatal: file values-Xa.o: open failed: No such file or directory >... (5 Replies)
Discussion started by: hassan2
5 Replies
Login or Register to Ask a Question
yacc(1) 						      General Commands Manual							   yacc(1)

Name
       yacc - yet another compiler-compiler

Syntax
       yacc [-vd] grammar

Description
       The command converts a context-free grammar into a set of tables for a simple automaton which executes an left recursive parsing algorithm.
       The grammar may be ambiguous; specified precedence rules are used to break ambiguities.

       The output file, must be compiled by the C compiler to produce a program yyparse.  This program must be loaded with  the  lexical  analyzer
       program,  yylex, as well as main and yyerror, an error handling routine.  These routines must be supplied by the user; is useful for creat-
       ing lexical analyzers usable by

Options
       -d Writes all define statements to file.  This allows source files other than to access the token codes.

       -v Writes description of parsing tables and report of grammatical conflicts to file.

Diagnostics
       The number of reduce-reduce and shift-reduce conflicts is reported on the standard output; a more detailed report is  found  in	the  Simi-
       larly, if some rules are not reachable from the start symbol, this is also reported.

Restrictions
       Because file names are fixed, at most one process can be active in a given directory at a time.

Files
       y.output
       y.tab.c
       y.tab.h		   defines for token names
       yacc.tmp, yacc.acts temporary files

See Also
       lex(1)
       "YACC - Yet Another Compiler Compiler" ULTRIX Supplementary Documents Vol. II:Programmer

																	   yacc(1)