Go to advanced search

by RichardUK
Wed Oct 18, 2017 10:15 am
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

How do you cope with all the scheduling when running multiple compilations in parallel? The Pi3 has four cores - might as well use them! That does seem hard in shell script. I'm using C++11 and some of the additions to the standard library has made it easier. It does use all the CPU cores you have,...
by RichardUK
Tue Oct 17, 2017 10:38 am
Forum: C/C++
Topic: Anyone using distcc ?
Replies: 2
Views: 436

Re: Anyone using distcc ?

That looks interesting, thanks for the link. :)
by RichardUK
Tue Oct 17, 2017 10:27 am
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

CI refuse to use make files because I lose more time playing with them than writing code. Currently I am just using large bash scripts if I have to compile large repos on linux. Trouble is on the Raspberry Pi, it has slow disks and slow CPU's. So some sort of "make" tool is needed to 1) only compil...
by RichardUK
Tue Oct 17, 2017 10:18 am
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

Can I add a suggested feature shamelessly stolen from Visual Studio, Allow the option to select a directory and automatically add all the files in a directory to the solution. I am in the same boat as you, I refuse to use make files because I lose more time playing with them than writing code. Curr...
by RichardUK
Sun Oct 15, 2017 9:38 pm
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

As I understand it, make will be spawned many times and so there is some duplication of work. I think there is only one instance of the "make" process. Not from what I see with htop. Also when you use make with recursion, it spawns it self again and reloads the file. I used it to compile source fil...
by RichardUK
Sun Oct 15, 2017 1:08 pm
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

Make syntax is horrible for anything other than the basics. This is my experience, just a short coming of mine. Seen some very clear use of make but for me just got in the way. for software distributed as source, the "./configure && make && sudo make install" mantra should work on a bare system IMH...
by RichardUK
Sun Oct 15, 2017 1:03 pm
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

karrika wrote:
Sun Oct 15, 2017 12:10 pm
Many of my friends who got frustrated by the ancient Makefile syntax have moved to SCons. It can do lots of the things easily that Makefiles struggle with. Have a look at http://scons.org/

I am actually using both techniques today.
Thanks, I'll check it out. :)
by RichardUK
Sun Oct 15, 2017 1:01 pm
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

Re: My alternative to using Make

* Multithread compiling. * Single process used during entire build process that allows for increased speed of dependency checking between source files. What do you mean by multithread compiling in a single process? Its hard to understand how you can run multiple instances of GCC in separate threads...
by RichardUK
Sun Oct 15, 2017 11:19 am
Forum: C/C++
Topic: My alternative to using Make
Replies: 17
Views: 1148

My alternative to using Make

I've had to use make files for many many years yet I still find myself either failing to implement things like dependency checking or coming back to make files I wrote six months ago and having to reread the documentation. I have used CMake in the past but I don't like the swath of temp files it mak...
by RichardUK
Sun Oct 15, 2017 10:55 am
Forum: C/C++
Topic: Problem with longjmp on Pi Zero W
Replies: 16
Views: 1479

Re: Problem with longjmp on Pi Zero W

Anyway I think I may have taken the thread a little off piste, which is why I've reached out to the OP to see if I could find a solution or the issue. I hope you PM'd the right person as you PM'd me on this point and I couldn't let you know via PM as you have PM receipt disabled. Thanks, yes the wr...
by RichardUK
Sat Oct 14, 2017 7:57 am
Forum: C/C++
Topic: Problem with longjmp on Pi Zero W
Replies: 16
Views: 1479

Re: Problem with longjmp on Pi Zero W

Just do a divide by zero, that is even simpler, it's not right either. but it'll let you bail at any point. Will quit the interpreter too. (P.S don't ever do that :) ) Not right either ? longjmp isn't the best thing in the world but it's not wrong whereas doing a divide by zero to force a jump to a...
by RichardUK
Fri Oct 13, 2017 8:22 pm
Forum: C/C++
Topic: Problem with longjmp on Pi Zero W
Replies: 16
Views: 1479

Re: Problem with longjmp on Pi Zero W

never used longjump and don't think I've ever seen a need, How do you implement coroutines? :) When dealing with an interactive interpreter (like Python or Basic say), longjmp is a simple way of handling interrupts. Just do a divide by zero, that is even simpler, it's not right either. but it'll le...
by RichardUK
Fri Oct 13, 2017 8:12 pm
Forum: C/C++
Topic: Problem with longjmp on Pi Zero W
Replies: 16
Views: 1479

Re: Problem with longjmp on Pi Zero W

Its called 660 times in the code, so it may not be so easy to change each call to laboriously go back down the stack constantly checking error returns and so on. Yes I can see trying to alter and maintain code that is using this pattern can be a pain. Why doesn't everything just call error()? Have ...
by RichardUK
Fri Oct 13, 2017 1:40 pm
Forum: C/C++
Topic: Problem with longjmp on Pi Zero W
Replies: 16
Views: 1479

Re: Problem with longjmp on Pi Zero W

Are you using any C++ classes? This could be causing issues if a destructor itself is calling the error function or doing something else funky. As a side note, and I would expect may not interesting in coding style suggestions but.... I would recommend unwinding the stack and returning correctly wit...
by RichardUK
Wed Oct 11, 2017 2:18 pm
Forum: C/C++
Topic: A simple frame buffer class
Replies: 0
Views: 369

A simple frame buffer class

I wanted to use SDL2 in the console, seems that SDL2 on the RPi is built for X11 support and so you have to recompile it yourself if you want to use it in the console. I just wanted to display some text and GFX so I put together this little bit of code that I hope others may find helpful for some si...
by RichardUK
Sat Oct 07, 2017 12:41 pm
Forum: Off topic discussion
Topic: Adafruit buys Radio Shack! 8-o
Replies: 22
Views: 3822

Adafruit buys Radio Shack! 8-o

https://twitter.com/adafruit/status/916473322203992064

Don't think it's April the 1st yet???

way cool :)
by RichardUK
Thu Sep 07, 2017 10:05 pm
Forum: General discussion
Topic: Android Things using an old kernel???
Replies: 3
Views: 346

Re: Android Things using an old kernel???

Thanks for the info bensimmo, I think i'll see how I can raise a bug on their project site, if they have one. Certainly not behaving as well as Raspbian does. :)
by RichardUK
Wed Sep 06, 2017 9:44 pm
Forum: General discussion
Topic: Android Things using an old kernel???
Replies: 3
Views: 346

Android Things using an old kernel???

Just trying out Android things and I've had a bit of a fight to get the display to work. The last few revisions for Raspbian have worked out of the box with the random monitors I have around the house. Was not always the case but something was improved a while ago and all the issues I had went away....
by RichardUK
Sat Sep 02, 2017 9:31 pm
Forum: Bare metal
Topic: Simple VGA Mode X (direct frame buffer) programming
Replies: 8
Views: 1711

Re: Simple VGA Mode X (direct frame buffer) programming

I just used this old tutorial to give me a leg up. :-) The PI seems to now boot to 32bpp in this tutorial they say it boots to 16bpp. Using my RPi zero the code to switch too 8bit pallet mode works too. The closest you'll get to Mode X. Mode X was cool, writing to 4 pixels at once (had to be the sam...
by RichardUK
Sat Apr 29, 2017 6:24 pm
Forum: General discussion
Topic: BBC click "unhackable email server"
Replies: 3
Views: 515

Re: BBC click "unhackable email server"

Was very funny to watch and also very scary that someone can make such bold claims by just installing OLD software on to a RPi, put it in a box and sell for a markup. They say they don't use the RPi now, there is no evidence to that and also is not the fix. It's their use of software and how they pa...
by RichardUK
Sat Apr 29, 2017 2:17 pm
Forum: General discussion
Topic: Using Raspberry Pi in commercial security product
Replies: 6
Views: 794

Re: Using Raspberry Pi in commercial security product

Bit of a hype story spreading round the WWW as NomX no longer use the Raspberry Pi in its products ;) In 2016 nomx produced a number of devices based on a Raspberry Pi. These devices were primarily used for demonstration and media use, and were provided to numerous media to review nomx. A number we...
by RichardUK
Thu Apr 20, 2017 5:12 am
Forum: General discussion
Topic: Forum search box a joke?
Replies: 17
Views: 1294

Re: Forum search box a joke?

Although I agree with you, I feel your post could have been a little more respectful. You're unlikely to get the desired result, what you are more likely to have done is dishearten the team that run this free resource. Maybe you could consider restarting the conservation by highlighting the issues a...
by RichardUK
Wed Apr 19, 2017 5:49 pm
Forum: General discussion
Topic: Rasberry Pi as a dongle
Replies: 6
Views: 572

Re: Rasberry Pi as a dongle

Searching youTube for "raspberry pi 3g router" comes up with lots of hits, one of them should be what you're after. :)
by RichardUK
Wed Apr 19, 2017 5:38 pm
Forum: General discussion
Topic: Pi Clearout
Replies: 6
Views: 776

Re: Pi Clearout

I think part of the problem is that the RPi is such good value people would rather get a new one even though yours is as good as new. It is a strange situation where they are in demand but you find it hard to do a good thing and pass it on to someone who could make use of it. I wonder if there could...
by RichardUK
Wed Apr 19, 2017 5:02 pm
Forum: General discussion
Topic: RPi3 with no GPIO pins, or reverse-mounted pins?
Replies: 11
Views: 852

Re: RPi3 with no GPIO pins, or reverse-mounted pins?

I keeping thinking from time to time that it would be nice to be able to buy a RPi3 without the headers, the eithernet jack and usb sockets. (but all chips still in place). But I fully understand why this will probably never happen without putting my hand in my pocket for a big custom run which is w...

Go to advanced search