Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #90248

Re: how to execute cprog1.c

From Cal Dershowitz <cal@example.invalid>
Newsgroups comp.lang.c, comp.unix.programmer
Subject Re: how to execute cprog1.c
Followup-To comp.unix.programmer
Date 2016-07-11 23:33 -0700
Message-ID <dujh9fF7vrlU1@mid.individual.net> (permalink)
References <dtphk9F2uacU1@mid.individual.net> <lnfurroh2o.fsf@kst-u.example.com> <du41ejFh2t6U1@mid.individual.net> <lntwg2n5an.fsf@kst-u.example.com>

Cross-posted to 2 groups.

Followups directed to: comp.unix.programmer

Show all headers | View raw


On 07/06/2016 08:40 AM, Keith Thompson wrote:
 > Cal Dershowitz <cal@example.invalid> writes:
 >> On 07/02/2016 02:39 PM, Keith Thompson wrote:
 >>> Cal Dershowitz <Cal@example.invalid> writes:

[x-posted to c.u.p., hope I set f'ups thereto]

 >>
 >>> That repo contains a one-line README, a sizable file called
 >>> baseline_mod_times.txt that appears to contain some program output,
 >>> and a C source file cprog1.c, with the following contents:
 >>
 >> You use the word "repo."
 >
 > Yes, I do.  If you're expecting that statement to elicit more
 > information, you'll have to give us some idea what you're looking
 > for.  Asking a question would be a good start.  ("Repo" is short for
 > "repository" if that's what you're wondering.)

You'll have to forgive me, Keith, repo's were R Lane vehicles in my day 
job until you informed me of what is likely a colloquialism among people 
you know in the syntax world. I instantly approve of it because it's 
fewer keystrokes.

Also, I would like to thank all those to whom I did not respond, as it 
makes a messy thread...read every word. If "making" were baseball, I 
would have struck out, but I was clodhopping through another toolchain.

 >>> Downloading the repo from GitHub is not difficult.  I used
 >>>
 >>>       git clone https://github.com/TBlazer66/island
<snip>
 >It looks like you had already cloned the "island" repository, or perhaps
 > obtained a copy by some other means.  Now you've cloned it again into a
 > subdirectory.

I'm still working on this. My idea is that I should have the git 
identities on windows and linux be different, but even as I type wonder 
if that is what branching is for. For the purposes of moving forward in 
c.u.p., assume that I am developing on that platform.

 >> wow, well the output is false, but I have new island. I think of C as a
 >> stygian witch who needed a child syntax like perl to tell her where she
 >> is. But where's the compilers around here?
 >
 > What?  Are you asking us where the compilers are on your system?  How do
 > you expect us to have any idea?

Because I will tell you:

Summary of my perl5 (revision 5 version 18 subversion 2) configuration:

Platform:
osname=linux, osvers=3.13.0-79-generic, 
archname=x86_64-linux-gnu-thread-multi
uname='linux lgw01-37 3.13.0-79-generic #123-ubuntu smp fri feb 19 
14:27:58 utc 2016 x86_64 x86_64 x86_64 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN 
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 
-Wformat -Werror=format-security -Dldflags= -Wl,-Bsymbolic-functions 
-Wl,-z,relro -Dlddlflags=-shared -Wl,-Bsymbolic-functions -Wl,-z,relro 
-Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr 
-Dprivlib=/usr/share/perl/5.18 -Darchlib=/usr/lib/perl/5.18 
-Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 
-Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local 
-Dsitelib=/usr/local/share/perl/5.18.2 
-Dsitearch=/usr/local/lib/perl/5.18.2 -Dman1dir=/usr/share/man/man1 
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 
-Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 
-Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm 
-Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g 
-Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.18.2 -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector 
-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.8.2', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib 
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=, so=so, useshrplib=true, libperl=libperl.so.5.18.2
gnulibc_version='2.19'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector'

^^^^^that is myconfig-------
Local date and time Mon Jul 11 22:09:38 2016

Now, if I'm on a boat, need to get home, I can frame the next question, 
but since non-standard headers are involved will wait for a tick.

https://github.com/TBlazer66/island/blob/master/compiler_find.pl

...latest commit, and I'm just shooting at the backboard, including 
useful software with some measure of documentation. With respect, Keith, 
I submit that knowing how to link your C programs is *vital* to making 
them happen, so I don't think that I'm really intruding on the 
topic-space so much as extending it. Maybe in the direction that I 
fought you and Chuck on during the bad old times.

 > Perl is implemented in C, its syntax is superficially similar,
 > and there are facilities for calling C code from Perl.  But it's
 > still a distinct language, and you can learn Perl by itself.
 >

Agreed. I stand by my "c is a stygian witch" contention and claim 
further that the "eye" is an early version of an execution model. The 
other sisters flake out without the eye...they don't die...they flail 
around. It's not meant as a dig...only perseus can make them drop the 
eye...Tumbolia!....

--
Cal Dershowitz

"Like another set of crones at the oldest levels of both Germanic and 
Norse mythology, they had but one eye and one tooth among them. These 
were shared and the sisters took turns in using them. By stealing their 
eye while they were passing it between them, the hero Perseus forced 
them to tell the whereabouts of their sisters, the Gorgons, ransoming 
the seeing eye for the information. The Graeae can be compared with the 
three spinners of Destiny (the Moirae), the northern European Norns, or 
the Baltic goddess Laima and her two sisters. In the movie Clash of the 
Titans, the Graeae were called the Stygian Witches."

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to execute cprog1.c Cal Dershowitz <Cal@example.invalid> - 2016-07-02 02:59 -0700
  Re: how to execute cprog1.c Luuk <luuk@invalid.lan> - 2016-07-02 12:21 +0200
  Re: how to execute cprog1.c "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-02 11:45 -0400
    Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-06 01:39 -0700
      Re: how to execute cprog1.c James Kuyper <jameskuyper@verizon.net> - 2016-07-06 11:16 -0400
        Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-07 23:00 -0700
          Re: how to execute cprog1.c luser droog <luser.droog@gmail.com> - 2016-07-07 23:30 -0700
            Re: how to execute cprog1.c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-08 10:09 +0100
            Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-08 03:34 -0700
            Re: how to execute cprog1.c gazelle@shell.xmission.com (Kenny McCormack) - 2016-07-08 10:57 +0000
          Re: how to execute cprog1.c Udyant Wig <udyantw@gmail.com> - 2016-07-08 15:14 +0530
  Re: how to execute cprog1.c Keith Thompson <kst-u@mib.org> - 2016-07-02 14:39 -0700
    Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-06 02:30 -0700
      Re: how to execute cprog1.c Keith Thompson <kst-u@mib.org> - 2016-07-06 08:40 -0700
        Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-11 23:33 -0700
  Re: how to execute cprog1.c Real Troll <real.troll@trolls.com> - 2016-07-06 18:38 +0100
    Re: how to execute cprog1.c raltbos@xs4all.nl (Richard Bos) - 2016-07-06 19:57 +0000

csiph-web