Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-08-2009, 07:37 PM   #1
Registered: Feb 2009
Posts: 36

Rep: Reputation: 15
Cross linking & flag ,oflag, gflag,....

Can you give a clear and basic description of this words in programming( specially related to fortran language )???:
cross linking,
cross compiling,
fflag,gflag,oflag & ...

Old 02-09-2009, 12:52 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It sounds like you're puzzling with Gnu make options used with your FORTRAN compiler:

1. As you know, you "compile" source code into an executable program.

Specifically, you "compile" .f source files into .o "object" files, then "link" all the objects you've built (along with system libraries you need) into your program image. I'm sure you already know all this...

2. If you're compiling on a PC (for example), you'll usually create object files and executables that can run on your PC.

This isn't a requirement, however.

You could just as easily compile objects that can run on another, *different* architecture (like an ARM processor, or a MIPS CPU, or anything imaginable. This is called "cross compiling". Generating an executable for another, different platform is called "cross-linking".

3. When you "build" a program, you typically use a tool that automates the busy work for you. This tool might be a graphical IDE (like Visual Studio, for example). Or it might be "make".

The tool might just call the compiler and linker, or it might also invoke other tools, like source control checkout or unit testing.

Gnu make supports all of these different options with special variables like "GFLAGS" or "OFLAGS". You can read about them here:

'Hope that helps .. PSM


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking error during cross compilation with ucibc libraries raklo Linux - Kernel 0 03-25-2007 11:48 PM
Cross-Compiling DLLs with Mingw32- Linking a Static Library KrayZier Programming 1 01-24-2007 05:52 PM
Linking error while Cross compiling m.harshavardhan Linux - Software 0 07-31-2006 06:08 AM
cross linking files rharris72 Programming 1 11-20-2005 05:24 AM
Compiling&Linking Error tekin Slackware 4 03-26-2005 08:36 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration