Pages: 1
  Print  
Author Topic: Is there any way of picking the C++ code before it is passed to the compiler  (Read 1797 times)
Offline (Unknown gender) matt_world2004
Posted on: January 26, 2014, 12:40:20 PM
Member
Joined: Jan 2014
Posts: 1

View Profile
Is there any way in Enigma of comiling the code to C++ so it can then be sent to say multiple compilers?  or to do minor modifications of the C++ code?
Logged
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: January 26, 2014, 01:49:35 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
C++ code is always generated, and can be sent to any compiler. You won't want to edit the generated code; it is not pretty.

The compilers the code can be sent to are listed under Compilers/PLATFORM/*.ey. If you like, you can create a new one for a different compiler. You can then select your preferred compiler from Enigma Settings, under the API tab.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #2 Posted on: January 26, 2014, 02:14:40 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
On Windows Vista or later the generated C++ is in C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Jimmy_D
Reply #3 Posted on: February 14, 2014, 11:37:06 PM
Member
Joined: Jan 2014
Posts: 69

View Profile
C++ code is always generated, and can be sent to any compiler. You won't want to edit the generated code; it is not pretty.

You got that right !  Nothing is pretty about the program you fucked up and painted yourself in a corner now.

You ought to be ashamed of yourself motherfucker.
Logged
Offline (Male) Josh @ Dreamland
Reply #4 Posted on: February 15, 2014, 08:36:09 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
The purpose of generated code is not to be pretty. ENIGMA's generated code is C++ with wildly bloated loops and gotos. GCC's generated code is then assembly with nothing but a dozen instructions for any piece of a loop, and gotos for any branching at all. That is the nature of compilation; it isn't a flaw in a compiler by any means.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #5 Posted on: February 15, 2014, 11:02:43 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Jimmy, I've warned you several times already about hijacking peoples topics, you're not only being rude to people not even affiliated with the project, you're filling the forums with spam. You've had your chance to make a topic of your own already, and you did, so you can either start obeying the forum rules, or leave, simple as that.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) Darkstar2
Reply #6 Posted on: February 16, 2014, 01:51:36 AM
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
The purpose of generated code is not to be pretty. ENIGMA's generated code is C++ with wildly bloated loops and gotos. GCC's generated code is then assembly with nothing but a dozen instructions for any piece of a loop, and gotos for any branching at all. That is the nature of compilation; it isn't a flaw in a compiler by any means.

LOL he hasn't seen the code generated by the YYC! :P

I mean come on is this serious ? DO people expect the code generated to be the same as writing your own C++ from scratch ? In the end it is the results that count and most people probably won't even notice the overhead from the engine anyway, in any case far better than what they are or were getting from game maker ....
Logged
Offline (Male) Goombert
Reply #7 Posted on: February 16, 2014, 02:00:16 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Allow me to quote YYG's own bug tracker.

http://experimental.yoyogames.com/view.php?id=13489

Quote
To throw an error when setting some extra-brackets, still valid GML-code, without mathematical functionality, but just to make the structure clearer for reading, reveals some deeper lacks in evaluating expressions. By the way, the ENIGMA-compiler accepts the GML-code above in both versions without errors.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) Darkstar2
Reply #8 Posted on: February 16, 2014, 02:24:04 AM
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
They fixed that in the latest EA build :D but....

Enigma 1 GM 0

I am curious and almost dying to know how many people (those who do not own master collection) paid $299 to purchase the YYC Compiler export. I get a sense that it still has many issues from what I read on GMC and elsewhere.

Now I'm also dying to know of those who paid $299, how many wish they could go back in time !

Logged
Offline (Male) Goombert
Reply #9 Posted on: February 16, 2014, 12:39:02 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Yeah but our current compiler is 5 years old and written by a 15 year old.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print