Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 13650

Some programming languages use compilers that 'translate' code into a lower level language before executing it. Use this tag for any questions about how to compile code on the Pi.

1 vote

G++ 4.8 optmization for compile on Raspberry Pi 2

On the Pi2 one easy enhancement is to add -j4 to make use of the four cores. As goldilocks points out the above won't help with a single compilation. -j is an option to make and will only be usefu …
joan's user avatar
  • 71.6k
2 votes
Accepted

Should I provide additional parameters for make on Raspberry Pi2?

A make which I do on a B+ takes 3 minutes. The identical make takes one minute on a Pi 2. If your program uses threads you won't have to do anything special to use the extra cores. The main program …
joan's user avatar
  • 71.6k
0 votes

Do `pthreads` work on the Pico with the native c++ SDK without posix?

From man make. A status of two will be returned if any errors were encountered.
joan's user avatar
  • 71.6k
3 votes

How to run 2 servos with wiringpi2 on Raspberry pi 2

Pis with the 40 pin expansion header give access to two channels for hardware PWM. Channel 0 is on gpios 12/18, channel 1 is on gpios 13/19. So with wiringPi you should be able to use two servos. I …
joan's user avatar
  • 71.6k
2 votes
Accepted

Raspberry Pi and Ada Compiler (gnat on Raspbian) - GPIO

I'll mention my pigpio library and daemon as the daemon was designed partly with other language use in mind. You can manipulate the GPIOs from Ada by using the socket interface. If you want a pure A …
joan's user avatar
  • 71.6k