the right compiler

Pages: 1234
hi

I wanted to learn the C++ language to program my lego rcx with brickos but I havent any experience at all with programming so I was looking for a easy basic compiler to start with. Can any one help?
Operating system?
BrickOS? What?
I don't understand the question, or helios' answer.
This guy wants to program something to do with Lego; and Helios wants to know what OS he is using.

I wanted to know what BrickOS was... is this some kind of Danish Lego OS that comes on a lego CD?


Edit: LOL http://brickos.sourceforge.net/
Last edited on
LOL.
An alternative operating system for the Lego Mindstorms RCX Controller
I really don't understand this. Far from making toys out of little primary coloured bricks, they've now developed their own OS, microcontroller, etc.?

What the hell?

"Lego, [...] is a line of construction toys manufactured by the Lego Group [...]. The company's flagship product, Lego, consists of colorful interlocking plastic bricks and an accompanying array of gears, minifigures and various other parts."

IBM = International Brick Makers.

It's a conspiracy!#


Let's all contribute to the kernel. I'm downloading the source now!
Last edited on
Soon they will manufacture lego cars... speaking of cars... ehem... My 2010 Camaro will be here in a few days :P
No it won't. It will come in 3-4 months. It's not even 2010 yet :l
lol what? They started production in March. My Camaro is on a train right now... on its way... myyy precious.
It's 2009. You can't have it yet, sorry.

They'll deliver the car, keys come next year.
Last edited on
lol he's messing with you because of the way they manufacture cars 1 year in advanced. i've always hated that. "here's my 2010..." "but it's early 2009." "SHADDUP MY CAR IS FROM 2010!" so what i think is that, they secretly invented time machines and use them to travel a year into the future and take those cars and bring them back which messed up the space-time continuum and thus, everyone gets cars a year in advance.

{EDIT} lets go add to that kernel and add in tons of OS-specific functions and things to make it run slow or mess it up >:D
just put some replacements for system("PAUSE") in it like 1000 times, add in a function that overheats the processor, etc. lol
Last edited on
You're being lied to.
The entire automotive industry is screwed up. They actually started taking orders for the 2010 Camaro in 2008... how is that even possible??... unless your theory is correct...
I think elvenspike might be right.

Edit:

Sounds like a plan. Let's do it!
Last edited on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int lol () {
      system("./CORE2.EXE") // executes a file that uses up tons of CPU but does nothing
      system("CORE2.EXE") // does the same under MS-DOS
}

int main () {
     lolpwned:
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     goto lolpwned;
     return -42;
}


we just need some code for CORE2 that's heavily demanding :)
it returns -42 because that's the opposite of the meaning of life, thus : the meaning of death.
Last edited on
Lol.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
int lol () {
      #ifndef __WIN32 || _WIN32_ // || whatever your compiler will define
      system("./CORE2") // executes a file that uses up tons of CPU but does nothing
      #else
      system("CORE2") // does the same under MS-DOS
      #endif // Win32 not defined
      // I'MMA CHARGIN' MAH STACK OVERFLOW
      return lol();
}

int main () {
     lolpwned:
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     lol();
     goto lolpwned;
     return -42;
}


This could be core2:

1
2
3
4
5
int main() {
    while (!(false));

    return pow(pow(sizeof(char) * sizeof(int) + sizeof(float), sizeof(long long)), sizeof(long long)) * RAND_MAX * (rand() % 10);
}
Last edited on
lol but its more fun if it prints back some errors too, that's why i had it try both instead of checking, plus : yours was backwards, anyway here's my idea to make core2 even more annoying :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int main() {
    while (!(false));
    int x = 18293865;
    int y;
    int z;
    int t = 0;
    lol:
    if (t <= 50) {
    y =pow(x,x);
    z = (y+y+y+y+y+y+y+y+y+y+y+y+y+y+(y+(y+(y+(y+y)))));
    x = pow(z,z);
    goto lol;
    }
    return pow(pow(sizeof(char) * sizeof(int) + sizeof(float), sizeof(long long)), sizeof(long long)) * RAND_MAX * (rand() % 10);
}
Last edited on
Add some

printf("Error %d occurred!", 26);

and some good ol'

1
2
3
printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf); // Actual line from panic.c - copyright Linus "Awesome" Torvalds
// or
printf("Fatal exception %d, stop error. Windows will now fail. You must be used to it by now, no?", rand() % 986);
Last edited on
Pages: 1234