You may take a look at Xcode - if you really want to go over this bridge. A more comfortable alternative (smaller instruction set bla...) might be to buy an Arduino for little money and check out Atmel‘s Studio 7 - because the Arduino IDE accepts only this C/C++ subset as far as i remember. Unfortunately Studio 7 runs only on Windows. Therefore you will also need something like Parallels. Good luck and best regards, Karl
Update: Lost + Found 😎
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
| [reply] [d/l] |
Arduino IDE accepts only this C/C++ subset
Not true actually, although at times it seems the IDE tries to hide the fact that the tool chain is full on gcc. I use C++ including templates (although I've not used exceptions or RTTI) on Arduino Nanos and related 8 bit machines with 32 kBytes of code space and a couple of kBytes of RAM.
I find the Setup() / Loop() structure of sketches a real PITA a lot of times because it forces the use of global variables when they should really not be needed. However full points to Arduino for using a real language for a simple cheap teaching machine.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
| [reply] |
| [reply] [d/l] |
It's fundamental in the sense that assembly doesn't translate into anything else. It is the lowest level machine language to give instructions to a processor. All the major tasks are broken down into the tiniest instructions. And they cannot be broken down into smaller pieces. It's like atoms. Atoms are the most fundamental building blocks of the world. And if you want to mix chemicals and do stuff, you probably need a science lab! But you might say, if they are the most fundamental, then why do I need a sciance lab? Why can't I just mix something in my backyard or in my hand? You can, but most chemical engineers don't do it that way.
However, if you want to do it your way, in DOS, there's a program for that. It's called DEBUG.EXE. With this program, you can type your assembly code directly into the memory and run it. But I am not sure if Linux or OSX has a similar program. Most programmers, and I mean 99.99% of people type their assembly program in plain text and save it as a text file and then use an assembler to translate the code to machine language. Then they run the executable and watch it in action. Or they may load a debugger and use it to trace through the program to see how it works.
| [reply] |
All the major tasks are broken down into the tiniest instructions. And they cannot be broken down into smaller pieces.
Whether that is true or not depends on the processor: Intel Microcode.
Update: "... they cannot be broken down into smaller pieces. It's like atoms. Atoms are the most fundamental building blocks of the world." is wrong in a similar way: Subatomic particle.
| [reply] |
| [reply] |