Skip to content

Instantly share code, notes, and snippets.

@Circuitsoft
Created November 1, 2012 22:44
Show Gist options
  • Select an option

  • Save Circuitsoft/3997201 to your computer and use it in GitHub Desktop.

Select an option

Save Circuitsoft/3997201 to your computer and use it in GitHub Desktop.

Revisions

  1. Circuitsoft revised this gist Nov 1, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion out-1.c
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    static int func2(int parm)
    int func2(int parm)
    {
    return parm+3;
    }
  2. Alex Austin revised this gist Nov 1, 2012. 4 changed files with 18 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    all: out-r.o out-c.o

    out-r.o: out-1.o out-2.o
    ld -r o $@ $^
    ld -r -o $@ $^
    4 changes: 4 additions & 0 deletions out-1.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    static int func2(int parm)
    {
    return parm+3;
    }
    4 changes: 4 additions & 0 deletions out-2.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    int func1(int parm)
    {
    return func2(parm)+4;
    }
    9 changes: 9 additions & 0 deletions out-c.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    static int func2(int parm)
    {
    return parm+3;
    }

    int func1(int parm)
    {
    return func2(parm)+4;
    }
  3. @invalid-email-address Anonymous created this gist Nov 1, 2012.
    4 changes: 4 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    all: out-r.o out-c.o

    out-r.o: out-1.o out-2.o
    ld -r o $@ $^