LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-08-2009, 07:37 PM   #1
madani
Member
 
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 )???:
Link,
cross linking,
cross compiling,
flag,
fflag,gflag,oflag & ...

Yours;
 
Old 02-09-2009, 12:52 AM   #2
paulsm4
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:

http://www.gnu.org/software/automake...Variables.html

'Hope that helps .. PSM
 
  


Reply


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


All times are GMT -5. The time now is 05:53 AM.

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