Go Down

Topic: Arduino BASIC compiler (Read 15030 times) previous topic - next topic

Meinzi

Hi I am new here and I dont know if I am right here to ask a question about Local Debug on Sloeber Arduino.
I have installed the 4.1 Version of plugin Sloeber.

Now I have tried to implement debug function to Sloeber.
I made as it is described in video tutorial. (https://www.youtube.com/watch?v=ZN-rLSyhBN8&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF&index=4)

But now after all i tried to compile in localdebug and it shows me the error:

20:09:00 **** Incremental Build of configuration localdebug for project blink ****
"D:\\Arbeit\\sloeber\\arduinoPlugin\\tools\\make\\make" all
'Building file: ..\.ino.cpp'
'Starting C++ compile'
"/bin/g++" -c -g -O0 -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -DF_CPU=8000000L -DARDUINO=10802 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR_LOCAL -DLOCAL_RUN  -I"D:\Arbeit\git\hardware\jantje\avr_local\cores\arduino" -I"D:\Arbeit\git\hardware\jantje\avr_local\variants\avr:1.6.20:eightanaloginputs" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "..\.ino.cpp"  -o  ".ino.cpp.o"  -Dsrandom=srand -Drandom=rand
Das System kann den angegebenen Pfad nicht finden.
subdir.mk:24: recipe for target '.ino.cpp.o' failed
make: *** [.ino.cpp.o] Error 1

20:09:01 Build Finished (took 450ms)


As i understand it tried to call "/bin/g++" which is not possible cause also the command console doesnt find the path of g++.exe.

If it would be called simple with "g++" it will be found due to the windows path implementation shown in the video. I checked this in a cmd console!
What is wrong?
Can you help me?

best regards Klaus

basicchip

#16
Jan 17, 2019, 11:23 pm Last Edit: Jan 20, 2019, 06:22 am by basicchip
Rather than starting a new topic, I want to see if there is some interest in BASIC for Arduino.

I am thinking of porting an ARM BASIC compiler to the Zero.  This compiler supports, integers, strings, floating point, interrupts, multitasking and more.

This would be a free download.  The port exists for other ARM devices so it should not take too long.  And if interest warrants a version for AVR could be built.

Robin2

A Nano is not a variant of an ARM processor.

And have you considered how much SRAM there is on a Nano?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

AWOL

Rather than starting a new topic, I want to see if there is some interest in BASIC for Arduino.
I don't understand why anyone would want to cripple an already resource-poor architecture.

basicchip

Meant to say Arduino Zero, or really a SAMD21 for a target for BASIC.  Yes I know BASIC is looked down upon by the professional community, but it is a very capable language.  And it is easy for non-professional programmers to read and modify.

Most people don't realize code is read by humans many more times than it is written.

AlyssonR

I'm not really invested in this, but there are some things that are so much simpler to achieve in BASIC than in C, no matter how good the libraries are. The main one being string/text handling.

It took time to wrap my head around Arduino C/C++ (and it is much easier than C/C++ for operating systems), but I seriously miss those easy string functions.

I would love to see BASIC for Arduino etc.  Whether I'd actually use it, on the other hand, is another question.

FWIW, I'm using the Arduino IDE for developing on AT Tiny85 up to the STM32F103 chips, so I need code that compiles down to very little at all (Tiny85) and a way to cram lots of twiddly bits into something more spacious (STM32). I'm not sure how well optimised any BASIC compiler would be with so many system options on te IDE.

Robin2

but there are some things that are so much simpler to achieve in BASIC than in C, no matter how good the libraries are. The main one being string/text handling.
Indeed.

But, whatever program language you use, an Arduino does not have enough memory for that type of string handling. It works well when you have 2GB of ram. But not when you have 2K of ram.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

AlyssonR

Admittedly on something with a few meg of RAM, you can do wonders with text - but the basics of that kind of string handling was available on 32k 8-bit machines, and that is all that is needed.

The major limitation is not in program memory, but in RAM - but we don't often need to parse long text input (i.e. more than 256 characters), and anything that would allow me to conveniently LINE INPUT a complete NMEA sentence (for example) from the UART in one statement would be a help.


Go Up