Sponsored Content
Full Discussion: gcc arm compiler
Operating Systems Linux Fedora gcc arm compiler Post 302411715 by sujith4u87 on Friday 9th of April 2010 09:05:43 AM
Old 04-09-2010
gcc arm compiler

think only compile is required I wish to compile a sample code

int main()
{
int a=5,b=8,c;
c=a+b;
}

compile using gcc -Wall -g -march=arm922t main.c -o hello
I got an error
:bad value(arm922t) for -march=switch
instead of using march i used mcpu options ,the same error will occured

I am using gcc 4.1.1 version in fedora 6

Any one find my problem and guide me
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cc compiler / gcc

:confused: I have a question concerning gcc. IŽd like to install the gcc on my Mac OS X, but when I try to run the configure command I get the following message: floriant% ./configure ./configure: read-only variable: PWD Configuring for a powerpc-apple-darwin5.4 host. *** This configuration... (2 Replies)
Discussion started by: florian.turck
2 Replies

2. Programming

gcc compiler

i write c++ code it run perfectely with g++ compiler but same code when i compile with GCC compiler it gives linker error , followed these linker error /tmp/ccfZtXOQ.o(.text+0x22): In function `main': conf_system.cpp: undefined reference to `operator new(unsigned int)'... (5 Replies)
Discussion started by: munnu
5 Replies

3. 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

4. Ubuntu

gcc compiler

where to download gcc compiler for ubuntu? how to install? how to build and run "c programs"? screen shots if possible.....:b::D tutorials too:cool: (5 Replies)
Discussion started by: villanarun
5 Replies

5. Shell Programming and Scripting

gcc compiler

I am using open suse linux. I want to install gcc compiler in my machine. I ahve checked man gcc and man cc. But it's not there. Can someone help me (4 Replies)
Discussion started by: pritish.sas
4 Replies

6. Programming

gcc compiler

Which gcc compiler release had the Arm 9 multicore support?Whether the compiler that used for the single Arm 9 core can be used for its multicore systems ? If gcc not support,please tell me which are the compilers that are available for Arm 9 multicore systems (including commerical).Whether... (0 Replies)
Discussion started by: sujith4u87
0 Replies

7. UNIX for Advanced & Expert Users

gcc arm compiler

I want to find the ARM assembly language for my sample C code using gcc .I had gcc compiler ,whether it is enough for it or i need to download gcc arm cross compiler.If necessary ,how it configured?I am using fedora (0 Replies)
Discussion started by: sujith4u87
0 Replies

8. 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

9. Programming

gcc for arm process

hi, correct me if am wrong, as per gcc doc gcc is able to compile code for different target systems such as ARM, ARC etc. I tried for compiling ARM but failed to do so. getting below error: gcc -mcpu=arm920t -c avg.c -o agv_arm `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.... (6 Replies)
Discussion started by: zing_foru
6 Replies
LTTNG-GEN-TP(1) 														   LTTNG-GEN-TP(1)

NAME
lttng-gen-tp -- LTTng UST 2.0 tracepoint code generator SYNOPSIS
lttng-gen-tp [OPTIONS] TEMPLATE_FILE DESCRIPTION
The LTTng project aims at providing highly efficient tracing tools for Linux. It's tracers help tracking down performance issues and debugging problems involving multiple concurrent processes and threads. Tracing across multiple systems is also possible. The lttng-gen-tp tool simplify the generation of the UST tracepoint files. It takes a simple template file and generate the necessary code to use the defined tracepoints in your application. The section TEMPLATE FILE FORMAT describe the content of the template file. Currently, the tool can generate the .h, .c and .o associated to your tracepoint. The generated .h can be directly included in your appli- cation. You can let the tool generate the .o or compile the .c yourself. You can compile the .c into a .o, .a or .so at your choice and link it with your application. Refer to the UST documentation for the advantages and disadvantage of each form. To compile the resulting .c file, you need to add the options "-llttng-ust -I.". Note for C++ support: although an application instrumented with tracepoints can be compiled with g++, tracepoint probes should be compiled with gcc (only tested with gcc so far). OPTIONS
This program follow the usual GNU command line syntax with long options starting with two dashes. Below is a summary of the available options. -h, --help Show summary of possible options and commands. -v, --verbose Increase verbosity. -o, --output Specify the generated file. The type of the generated file depend on the file extension (.h, .c, .o). This option can be specfied multiple times to generate different file type. When no output is specified de default files are generated with the same base filename as the template file. The default files are: .h, .c, .o. TEMPLATE FILE FORMAT
The template file, which has the usual extension .tp, contains a list of TRACEPOINT_EVENT definitions and other optional definition entries like TRACEPOINT_LOGLEVEL. (See lttng-ust(3) for the complete list of available definition.) You write them as you would write them in a C header file. You can add comments with /* */, // and #. The provider name (the first field of TRACEPOINT_EVENT) must be the same for the whole file. Example TRACEPOINT_EVENT( sample_tracepoint, message, // Comment TP_ARGS(char *, text), /* Next are the fields */ TP_FIELDS( ctf_string(message, text) ) ) ENVIRONMENT VARIABLES
When the tool generate an .o file, it will look for the following environment variables CC Specifer which C compiler to use. If the variable is not specified, the tool will try "cc" and "gcc" CFLAGS Flags directly passed to the compiler SEE ALSO
lttng-ust(3), lttng(1) BUGS
If you encounter any issues or usability problem, please report it on our mailing list <lttng-dev@lists.lttng.org> to help improve this project. CREDITS
lttng-gen-tp is distributed under the GNU General Public License version 2. See the file COPYING for details. A Web site is available at http://lttng.org for more information on the LTTng project. You can also find our git tree at http://git.lttng.org. Mailing lists for support and development: <lttng-dev@lists.lttng.org>. You can find us on IRC server irc.oftc.net (OFTC) in #lttng. AUTHORS
lttng-gen-tp is written by Yannick Brosseau <yannick.brosseau@gmail.com>. February 16, 2012 LTTNG-GEN-TP(1)
All times are GMT -4. The time now is 07:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy