Hey macOS users out there

RaspberryDJ

Member
Joined
Jun 3, 2019
I want to use Xcode to manually compile the GLFW3 code that Cerberus (and Monkey) generates.
So I load the source code into Xcode, I change the version to the latest to allow 64-bit compilation, and after that it compiles just fine. My problem is that the binaries gets so much slower when compiled manually this way.

I think I need to change something inside Xcode.
 

RaspberryDJ

Member
Joined
Jun 3, 2019
Found it. In Xcode you go to Product/Scheme/Edit Scheme, and there you change debug to release. This will fix the speed.
For general compilation optimisations you should be able to go to the project's Build Settings and change Apple LLVM, but I leave that for later.

The problem is now that if I do this, MonkeyX-spit-out code suddenly refuses to compile? It compiles beautifully in debug mode). Cerberus' output can be compiled using both debug and release mode. But Monkey had to be slow debug :( The deal is that I wanted to learn from looking at what both compilers spit out. It would be an interesting experience and it would lay a great foundation when I start improving Cerberus.

I wanted to start with running old monkey code on a modern Xcode (of course the binary does not work) but the sourcecode did!
But as I said, only in debug mode.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Location
Germany
I want to use Xcode to manually compile the GLFW3 code that Cerberus (and Monkey) generates.
So I load the source code into Xcode, I change the version to the latest to allow 64-bit compilation, and after that it compiles just fine. My problem is that the binaries gets so much slower when compiled manually this way.

I think I need to change something inside Xcode.
I wonder why you do this for Cerberus X. I am creating 64bit apps here just fine.
 

RaspberryDJ

Member
Joined
Jun 3, 2019
I'm doing it for learning basically. I try to learn both how Xcode works so I can do more native things if I need.
And to learn how Cerberus X works. And most important I want to see the differences in what Monkey X spits out and what Cerberus X currently spits out. I'm learning a lot from that when it comes to the things I want to change with Cerberus.
 

RaspberryDJ

Member
Joined
Jun 3, 2019
Iit is slow of course, but I Donn't give up early and it's the best way I know right now how to learn everything I think :)
 
Top Bottom