Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

GCC is BLOATED

Name: RMS Matthew Stallman 2010-11-29 19:42

g++ -o foo bar.cpp creates a 7kb executable

which would be cool if bar.cpp didn't consist of:

int main(){}

Fuck this shit. Is there some sort of compiler flag I'm missing out on, or is my anus totally haxxed?

Name: Anonymous 2010-11-29 19:52

make your own

Name: Anonymous 2010-11-29 19:54

g++ does indeed suck monkey anus.
I always find that the error messages are cryptic and long; I can get 20 lines of errors just for forgetting to close a parenthesis

Name: Anonymous 2010-11-29 19:57

-s

Name: Anonymous 2010-11-29 23:25

Name: Anonymous 2010-11-30 0:26

http://www.cminusminus.org/
Well shit, it's not at all relevant to >>1, but it's interesting.  Looks like it hasn't had much acceptance yet, though.

Name: Anonymous 2010-11-30 1:52

>>6
It looks inferior to LLVM in every way.

Name: Anonymous 2010-11-30 4:44

>>1
It's not gcc that's bloated, it's glibc's stupid startup code (why they didn't put it in an .so like how Windows executables link to MSVCRT for theirs, I don't know.)

Name: Anonymous 2010-11-30 4:53

Try writing:

public class AnusHax {
    public static void main(String[] args) { }
}


javac it, run it and enjoy JAVVA eating up 800kB of memory for a fraction of a second.

Name: Anonymous 2010-11-30 4:59

>>8
Because there are other retards such as this: http://harmful.cat-v.org/Blog/2007/07/02/1_What_does_dynamic_linking_and_communism_have_in_common/

This is the nature of Free/Libre Open Source Software: for any idea there's a vocal subcommunity of retards who would foam at the mouth about how harmful it is.

Name: Anonymous 2010-11-30 5:28

>>10
I'd have to agree with that on the *nix dynamic linking system. It's one of the things that Windows did better.

Name: Anonymous 2010-11-30 5:38

>>1
cpp
Now you have two problems.

Name: Anonymous 2010-11-30 5:59

--nostdlib

Name: Anonymous 2010-11-30 6:04

>>13
you have to explicitly specify NOT to include stdlib?
wtf? it should just be able to know whether to include it or not based on your code

Name: Anonymous 2010-11-30 6:47

>>14
Ever tried to compile something with MSVC?

IHBT

Name: Anonymous 2010-11-30 10:39

strip

Name: Anonymous 2010-11-30 10:50

bjarne straustrip

Name: Anonymous 2010-11-30 11:11

C and most all high level programming languages include a runtime in the binary file. If you want to program in a language that produces a binary that is about the same size as the source code text file than your only option is assembly

btw, this is clever:
RMS Mathew Stallman
Im going to use that

Name: Anonymous 2010-11-30 11:57

ld --dynamic-linker /lib/ld-linux.so.2 -lc

Name: Anonymous 2010-11-30 12:44


┌xarn`epicurus @ ~
└╼ vim anus.cpp
┌xarn`epicurus @ ~
└╼ g++ anus.cpp -o anus
┌xarn`epicurus @ ~
└╼ ls -al anus; strip anus; ls -al anus
-rwxr-xr-x 1 xarn xarn 8401 2010-11-30 18:38 anus
-rwxr-xr-x 1 xarn xarn 6208 2010-11-30 18:39 anus
┌xarn`epicurus @ ~
└╼ g++ -Os anus.cpp -o anus
┌xarn`epicurus @ ~
└╼ ls -al anus; strip anus; ls -al anus
-rwxr-xr-x 1 xarn xarn 8401 2010-11-30 18:39 anus
-rwxr-xr-x 1 xarn xarn 6208 2010-11-30 18:40 anus
┌xarn`epicurus @ ~
└╼


FUCK

Name: Anonymous 2010-11-30 12:55

>>20

└╼

Oh god it's you again.

Name: Anonymous 2010-11-30 13:06

>>20
Holy shit, this is awesome. I'll make it use colors too!

Name: Anonymous 2010-11-30 13:16

>>5-7
Wow, prog blew my mind today.  I had no idea these code generation projects existed.  I've never really liked the lex/yacc/flex/bison/whatever way of doing things.

Name: Anonymous 2010-11-30 13:38

>>20

So do people actually voluntarily make their PS1 take an extra line in the terminal?

Name: Anonymous 2010-11-30 14:04

>>24
- Hey Pepe, why do you make yer PS1 take a whole extra line in the terminal? - Feels good man.

Name: Anonymous 2010-11-30 14:15

>>24
There are people who do all kinds of crazy things. Some people even make their prompt longer than one character.

Name: Anonymous 2010-11-30 14:24

>>26

Is that with a whitespace character or not? Because that really increases readability.

Name: Anonymous 2010-11-30 15:23

>>24
Yes, of course.

* It's not like I have any constraints re: vertical space. Actually, when I do want to see as much lines as possible simultaneously it's because I have used some commands producing a lot of output, and having a distinct line separating those commands is clearly beneficial, while the relative area of the prompt is all but insignificant.

* I do have constraints re: horizontal space sometimes, so having an actual prompt line as short as reasonably possible (two characters) is clearly beneficial again. Also, it's nice if the commands are more or less aligned with their output. And with each other, if your prompts might be differing.

* Which brings me to my last point: I have like ten environments for compiling shit only, with usually tree or four opened simultaneously. I really, REALLY don't want to do some stuff in the wrong place, or to compulsively check where I am all the time, I want the warm feeling of having that information in my not so peripheral vision at all times. Since there are no real drawbacks to it, I do.

In more accessible to yourself terms: it's like a HUD in your Call of Warfare -- yeah, sure, it takes some screen space, but its usefulness far outweighs the price.

Name: Anonymous 2010-11-30 15:56

I only use ICC for ENTERPRISE QUALITY machine code.

Name: Anonymous 2010-11-30 15:59

>>28

Get back to /g/, please.

Name: Anonymous 2010-11-30 16:02

>>30
``Nyan nyan nyan nyan ni hao nyan''

Name: Anonymous 2010-11-30 18:19

don't mind me, just covering that puddi bullshit.

Name: Anonymous 2011-01-31 20:52

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List