9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Good enough approximation for ape/pcc
@ 2006-04-07 18:13 Fernan Bolando
  2006-04-07 19:43 ` Russ Cox
  0 siblings, 1 reply; 67+ messages in thread
From: Fernan Bolando @ 2006-04-07 18:13 UTC (permalink / raw)
  To: 9fans Mailing list

is this a good enough approximation of the pcc compiler in plan 9?

gcc -ansi -pedantic -std=c89

this is just to assist me in porting some stuff into my plan9 box

,Fernan

--
Public PGP/GnuPG key (http://www.fernski.com)
pub 1024D/3576CA71 2006-02-02 Fernan Bolando
Key fingerprint = FDFE C9A8 FFED C1A5 2F5C EFEB D595 AF1C 3576 CA71


^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-09 23:04 erik quanstrom
  0 siblings, 0 replies; 67+ messages in thread
From: erik quanstrom @ 2006-04-09 23:04 UTC (permalink / raw)
  To: 9fans

i'm not convinced this is useful.  if your program is sufficiently
complicated to warrent this sort of debugging aid, just printing
the caller's name (or pc) is most likely insufficient.  most likely
you're going to need to know the whole call stack. and likely function
arguments and locals.

i did write a pretty large billing system that announced that
selected functions had been called in the debugging log.  even if we
had been programming to c99 at the time, __func__ would not have been
useful because we also printed out the most helpful arguments to
the functions we were tracing.

- erik

On Sun Apr  9 16:58:17 CDT 2006, schwartz@bio.cse.psu.edu wrote:
> Nah, even simple function calls can use it.
>
>    check(a, b, c, __func__);
>
> It's true, it would be nice to find out the caller from within check(),
> but this achieves most of the utility with a much simpler implementation.
>


^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-10 23:51 erik quanstrom
  0 siblings, 0 replies; 67+ messages in thread
From: erik quanstrom @ 2006-04-10 23:51 UTC (permalink / raw)
  To: 9fans

On Mon Apr 10 09:18:01 CDT 2006, rminnich@lanl.gov wrote:
> Brantley Coile wrote:
> It's humorous to see the inline madness, on machines with 512KB caches yet:
> [rminnich@q linux-2.6.16]$ grep -r -i 'static inline' . |wc
>    21262  142677 1810997
>
> yep, 21262 instances of 'static inline'. Even better:
>
> [rminnich@q linux-2.6.16]$ grep -r -i 'static inline' include/ | wc
>     8249   54789  689506
>
> so, like, 13K of them are NOT in .h. Which is worse, the fact that the
> code is replicated all over the place, via .h, or there are .c files
> with static inline in them? yikes.

the instructive thing about linux is that it doesn't use the c library. this
is because glibc is too big to put in the kernel (and too much of a moving target).

linux/gnu is suffering from a complication feedback loop.

- erik



^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-10 23:53 erik quanstrom
  0 siblings, 0 replies; 67+ messages in thread
From: erik quanstrom @ 2006-04-10 23:53 UTC (permalink / raw)
  To: 9fans

i've considered this.  would it be too much trouble to convert plan 9 object
files to elf? or to write a plan9-to-elf converter?

- erik

On Mon Apr 10 06:36:50 CDT 2006, brantley@coraid.com wrote:
> > i think the gcc folks have different goals.  they seem very interested in
> > lots of very sophisticated optimizations and support for every odd corner case.
>
> Or they might just like writing stuff for the compiler, personal
> entertainment.  Or they like seeing their names on gcc.gnu.org
> projects pages.  Or they really think that all this work makes some
> difference.  I don't know anyone who works on the beast, so I've no
> real clue as to why people continue to spend time on this monster.
> Let's just move Ken's C compiler everywhere.
>


^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-11  0:37 erik quanstrom
  0 siblings, 0 replies; 67+ messages in thread
From: erik quanstrom @ 2006-04-11  0:37 UTC (permalink / raw)
  To: 9fans

paul,

i'm looking for a job.  my professional experience is in distributed
search.  but i wrote quite a few interpreters and optimizers in the
process.  (e.g. given a federated field set, a mapping to a real database
and a query, the query can be rewritten and then simplified in an
abstract fashion.)  i have a b.a. in mathematics from st. olaf college.
(they offered no c.s. degree at the time.)

any interest?

- erik

On Mon Apr 10 09:43:27 CDT 2006, plalonde@telus.net wrote:

> That said, Neoptica (www.neoptica.com - the startup I'm involved
> (committed?) with) is looking for a world-class systems/compilers
> person to join our team; we're working on novel approaches to exploit
> multi-core architectures, GPUs, and fast bi-directional busses to
> improve the visuals in next-games.  The systems job add isn't posted
> yet, but should be soon - for the flavour through, think Brook
> (http://graphics.stanford.edu/papers/brookgpu/brookgpu.pdf), Sequoia
> (http://graphics.stanford.edu/~kayvonf/papers/sequoia_draft.pdf), and
> EAGL (http://www.cs.brown.edu/~tor/sig2002/ea-shader.pdf)


^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-11  0:40 erik quanstrom
  0 siblings, 0 replies; 67+ messages in thread
From: erik quanstrom @ 2006-04-11  0:40 UTC (permalink / raw)
  To: 9fans

sorry.

- erik

On Mon Apr 10 19:41:18 CDT 2006, quanstro@quanstro.net wrote:
> On Mon Apr 10 09:43:27 CDT 2006, plalonde@telus.net wrote:
>
> > That said, Neoptica (www.neoptica.com - the startup I'm involved
> > (committed?) with) is looking for a world-class systems/compilers
> > person to join our team; we're working on novel approaches to exploit
> > multi-core architectures, GPUs, and fast bi-directional busses to
> > improve the visuals in next-games.  The systems job add isn't posted
> > yet, but should be soon - for the flavour through, think Brook
> > (http://graphics.stanford.edu/papers/brookgpu/brookgpu.pdf), Sequoia
> > (http://graphics.stanford.edu/~kayvonf/papers/sequoia_draft.pdf), and
> > EAGL (http://www.cs.brown.edu/~tor/sig2002/ea-shader.pdf)



^ permalink raw reply	[flat|nested] 67+ messages in thread
* [9fans] Good enough approximation for ape/pcc
@ 2006-04-11 10:18 Andrew Simmons
  2006-04-11 10:55 ` Brantley Coile
  2006-04-11 11:25 ` quanstro
  0 siblings, 2 replies; 67+ messages in thread
From: Andrew Simmons @ 2006-04-11 10:18 UTC (permalink / raw)
  To: 9fans

 >limbo's ":=" works like that ...

 >i := 0;    # declares i as in an int and assigns 0 to it
 >r := ref Boo;    # declares r to be scarey

Well yes, but didn't Fortran's "=" work like that well before limbo?

C     DECLARE I AS AN INTEGER AND ASSIGN 0 TO IT
        I=0
C     DECLARE A TO BE A SCAREY FLOATING POINT NUMBER
       A=666.0



^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-11 12:58 Russ Cox
  0 siblings, 0 replies; 67+ messages in thread
From: Russ Cox @ 2006-04-11 12:58 UTC (permalink / raw)
  To: 9fans

> i've considered this.  would it be too much trouble to convert plan 9 object
> files to elf? or to write a plan9-to-elf converter?

this always seems like a good idea at first but is not,
as least as a solution for plan 9 from user space.

one of the main goals of p9p is to play nice with the
local system.  if you're going to do that you need to
be able to link with the local system libraries, which
means knowing the local system's calling convention,
object file formats, etc.  also debugging format so that
you can generate debuggable binaries.

plan 9 386 .8 files (just to take an example, any architecture
will do) look nothing like unix .o files, so it's not like
you could just change the compiler to generate .o either.
you'd have to merge 8c and 8l into a single program just
to generate a traditional unix .o, and then use the system
linker or maybe write your own.

that's not what i would call a portable system.  better to
have ansi c copies of the source and just use the system
compiler in the first place.  much less to maintain.

the work might be worth it if you were building your own
operating system and wanted it to use a non-gcc compiler
suite.  but at that point you could just load plan 9 binaries
instead of elf binaries and be done.

russ





^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-12  0:50 erik quanstrom
  2006-04-12  1:09 ` Charles Forsyth
  2006-04-12 11:18 ` Aharon Robbins
  0 siblings, 2 replies; 67+ messages in thread
From: erik quanstrom @ 2006-04-12  0:50 UTC (permalink / raw)
  To: 9fans

somehow i thought this might be the case.

- erik

On Tue Apr 11 06:58:07 CDT 2006, rsc@swtch.com wrote:
> > i've considered this.  would it be too much trouble to convert plan 9 object
> > files to elf? or to write a plan9-to-elf converter?
>
> this always seems like a good idea at first but is not,
> as least as a solution for plan 9 from user space.
>
[etc]


^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [9fans] Good enough approximation for ape/pcc
@ 2006-04-12  1:15 erik quanstrom
  2006-04-12  1:23 ` Charles Forsyth
  0 siblings, 1 reply; 67+ messages in thread
From: erik quanstrom @ 2006-04-12  1:15 UTC (permalink / raw)
  To: 9fans

the problem is that the X11 libraries are required for p9p to be useful.
tcc or icc on x86 machines seem good alternatives to gcc.
(tcc is very fast.)

- erik

On Tue Apr 11 20:11:18 CDT 2006, forsyth@terzarima.net wrote:

> it would still be useful for other software, and in some ways not too hard to do,
> if so much other code didn't depend, often needlessly, on peculiar things in gcc,
> as noted in earlier discussion.
>



^ permalink raw reply	[flat|nested] 67+ messages in thread

end of thread, other threads:[~2006-04-12 14:50 UTC | newest]

Thread overview: 67+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-07 18:13 [9fans] Good enough approximation for ape/pcc Fernan Bolando
2006-04-07 19:43 ` Russ Cox
2006-04-07 19:01   ` Fernan Bolando
2006-04-07 19:17     ` uriel
2006-04-07 19:57       ` David Leimbach
2006-04-07 21:52         ` Russ Cox
2006-04-07 21:07           ` David Leimbach
2006-04-08 22:39           ` Lluís Batlle i Rossell
2006-04-08 23:50             ` quanstro
2006-04-09  0:05               ` Russ Cox
2006-04-09  5:55                 ` Scott Schwartz
2006-04-09 16:56                   ` Russ Cox
2006-04-09 21:57                     ` Scott Schwartz
2006-04-09 23:04                       ` Russ Cox
2006-04-10  2:49                         ` Scott Schwartz
2006-04-10  4:19                           ` Russ Cox
2006-04-10  4:03                             ` lucio
2006-04-10  8:37                               ` Bruce Ellis
2006-04-10 14:42                                 ` Paul Lalonde
2006-04-10 11:11                               ` quanstro
2006-04-10 11:34                                 ` Brantley Coile
2006-04-10 14:09                                   ` Ronald G Minnich
2006-04-10 14:49                                     ` Paul Lalonde
2006-04-10 15:26                                       ` andrey mirtchovski
2006-04-10 22:07                                   ` Andrew Simmons
2006-04-10 23:04                                     ` Andy Newman
2006-04-10 23:18                                       ` David Leimbach
2006-04-10 23:51                                         ` Roman Shaposhnick
2006-04-11  0:07                                           ` David Leimbach
     [not found]                                             ` <3e1162e60604101707v6214a809h516a223bf5d14a06@mail.gmail.co m>
2006-04-11  1:26                                               ` Andrew Simmons
2006-04-11  2:37                                                 ` quanstro
2006-04-11  4:20                                                   ` Bruce Ellis
2006-04-11  5:40                                                     ` Skip Tavakkolian
2006-04-11  8:18                                                       ` Bruce Ellis
2006-04-11  8:56                                                         ` Charles Forsyth
2006-04-11  9:00                                                           ` Bruce Ellis
2006-04-11  8:17                                                 ` Lluís Batlle
2006-04-11 21:30                                                 ` Roman Shaposhnick
2006-04-11 22:37                                                   ` Russ Cox
2006-04-11 22:05                                                     ` Roman Shaposhnick
2006-04-11 21:25                                             ` Roman Shaposhnick
2006-04-10  9:57                             ` Charles Forsyth
2006-04-09 23:32                       ` geoff
2006-04-07 20:10     ` Russ Cox
     [not found]     ` <ba5b34e5051e1f0238a2df3f641d4598@cat-v.org>
2006-04-08  4:18       ` Fernan Bolando
2006-04-08  5:24         ` Russ Cox
2006-04-08  7:28           ` Bruce Ellis
2006-04-08 16:18             ` Rob Pike
2006-04-08 16:42               ` Bruce Ellis
2006-04-09 23:04 erik quanstrom
2006-04-10 23:51 erik quanstrom
2006-04-10 23:53 erik quanstrom
2006-04-11  0:37 erik quanstrom
2006-04-11  0:40 erik quanstrom
2006-04-11 10:18 Andrew Simmons
2006-04-11 10:55 ` Brantley Coile
2006-04-11 11:25 ` quanstro
2006-04-11 12:58 Russ Cox
2006-04-12  0:50 erik quanstrom
2006-04-12  1:09 ` Charles Forsyth
2006-04-12 11:18 ` Aharon Robbins
2006-04-12 11:31   ` R
2006-04-12 14:01   ` Russ Cox
2006-04-12 13:44     ` Charles Forsyth
2006-04-12 14:50       ` Brantley Coile
2006-04-12  1:15 erik quanstrom
2006-04-12  1:23 ` Charles Forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).