
Pinoy Iskolars sa Korea, Inc. (PIKO) - Official Website of Pinoy Iskolars sa Korea, Inc. (PIKO) 23rdbatch | A site design for Batch 2012 of the Sisters of Mary School Sogang GEEP: Log in to the site Hi! For full access to courses you'll need to take a minute to create a new account for yourself on this web site. Each of the individual courses may also have a one-time "enrolment key", which you won't need until later. Here are the steps: Fill out the New Account form with your details. An email will be immediately sent to your email address. Read your email, and click on the web link it contains. How to Compile C and C++ Programs on Unix Systems The easiest case of compilation is when you have all your source code set in a single file. Let’s assume we have a single source file named “hello_world.c” to compile. Before you start compiling the program, make sure that you are in the right directory on Sparky or Compserv and that the source code files are in the directory. Use the command “pwd” to print the current working directory. % gcc hello_world.c The compiler might show its messages (errors, warnings, etc.) differently, but in all cases, you'll get a file “a.out” as a result, if the compilation completed successfully. % gcc –o hello_world hello_world.c The ‘-o’ flag simply name the resulting executable file as specified. Once we have compiled and linked the program, we can run it by simply typing its name: % hello_world However, this requires that directory in which the executable file resides be in our PATH (which is a variable telling our Unix shell where to look for programs we're trying to run). % . % gcc -c main.cc
Overall Options - Using the GNU Compiler Collection (GCC) Print (on the standard output) a description of the command-line options understood by the compiler that fit into all specified classes and qualifiers. These are the supported classes: ‘optimizers’ Display all of the optimization options supported by the compiler. ‘warnings’ Display all of the options controlling warning messages produced by the compiler. ‘target’ Display target-specific options. ‘params’ Display the values recognized by the --param option. Display the options supported for , where is the name of one of the languages supported in this version of GCC. ‘common’ Display the options that are common to all languages. These are the supported qualifiers: ‘undocumented’ Display only those options that are undocumented. ‘joined’ Display options taking an argument that appears after an equal sign in the same continuous piece of text, such as: ‘--help=target’. ‘separate’ Display options taking an argument that appears as a separate word following the original option, such as: ‘-o output-file’.