Go to advanced search

by BMardle
Mon Aug 10, 2020 7:21 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

From what I understand FFT-based big-number multiplication algorithms require that the precision of the floating-point arithmetic also increase as n gets larger. I think this may increase the asymptotic time complexity by another factor of logn for the entire run. Good point. Is this an illustratio...
by BMardle
Mon Aug 10, 2020 4:58 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

https://newsroom.unsw.edu.au/news/science-tech/maths-whiz-solves-48-year-old-multiplication-problem We were in the middle of computing really big Fibonacci numbers when the nlogn multiplication conjecture was actually solved. In a way it was quite exciting. How strange! The DFT method has been know...
by BMardle
Mon Aug 10, 2020 3:24 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

Recently we had a little coding challenge around here that involved doing arithmetic on numbers with a million digits. The rule was than no non-standard libraries were to be used, so if your language did not support big integer maths you had to write your own. We discovered that often actually conv...
by BMardle
Mon Aug 10, 2020 1:44 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

LTolledo wrote:
Sun Aug 09, 2020 9:42 pm
....discussions veered off course by a very wide berth...... :D
Just a bit :) but I've enjoyed it all.
by BMardle
Mon Aug 10, 2020 1:43 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

jahboater wrote:
Sun Aug 09, 2020 8:53 pm
Heater wrote:
Sun Aug 09, 2020 7:55 pm
And why it had that silly DAA instruction.
Gone now!
They should have added 15 more half-carry flags, then they could implement a DA64 instruction (decimal adjust 64 bits) :lol:
by BMardle
Sun Aug 09, 2020 3:50 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

The general concern is that, while ARM does profit from licenses, they don't profit a LOT. Apparently, they pull in on the order of $2 billion per year. Softbank paid $32 billion to acquire ARM so the interest on what they paid is covered by ARM revenues. Since Softbank would like to make a profit ...
by BMardle
Sat Aug 08, 2020 1:41 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Re: Possible sale of ARM

in the high-performance arena IBM has also been opening up the licensing of past and future Power processors. Assuming Power10 doesn't flop next year, it is rumoured the Power11 may follow an open development model closer to RISC-V than anything else. [ramble] Oh! I didn't know Power was still bein...
by BMardle
Thu Aug 06, 2020 6:20 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4139

Possible sale of ARM

by BMardle
Fri Mar 06, 2020 2:11 pm
Forum: Wanted
Topic: Wanted: Raspberry Pi Zero W
Replies: 6
Views: 1370

Re: Wanted: Raspberry Pi Zero W

jamesh wrote:
Fri Mar 06, 2020 1:46 pm
There should be some arriving in stock soon - there's been a lot of demand* in the last few months which has left the channel a bit empty.
Hooray!
I was beginning to think there must be someone Out There who can't see a W without soldering a header onto it :)
by BMardle
Fri Mar 06, 2020 1:30 pm
Forum: Wanted
Topic: Wanted: Raspberry Pi Zero W
Replies: 6
Views: 1370

Wanted: Raspberry Pi Zero W

Does anyone know of anywhere in the UK that has a Pi Zero W? I've found plenty of sites that list them for about £9 but are out of stock. I want to add a colour-coded header to it. I've found someone selling the Pi Zero W with one already installed but it's £16, which seems a lot considering the hea...
by BMardle
Sat Dec 07, 2019 4:49 pm
Forum: Bare metal, Assembly language
Topic: BL instruction vs. basic blocks
Replies: 12
Views: 1284

Re: BL instruction vs. basic blocks

Sorry, but I don't understand the OP. It might help to know details of the language being compiled. Usually basic blocks, if used at all, are part of a control flow analysis. At that point a typical compiler has your program in some intermediate form, not in assembly. So the intermediate code might...
by BMardle
Tue Dec 03, 2019 3:44 pm
Forum: Bare metal, Assembly language
Topic: BL instruction vs. basic blocks
Replies: 12
Views: 1284

Re: BL instruction vs. basic blocks

That is called calling convention and since you are writing the assembler that is up to you You can see the GCC one https://wiki.osdev.org/Calling_Conventions As many compilers link to GCC c code they often just adopt GCC calling convention. It's interesting that lists R12 as a 'scratch' register.
by BMardle
Tue Dec 03, 2019 2:21 pm
Forum: Bare metal, Assembly language
Topic: BL instruction vs. basic blocks
Replies: 12
Views: 1284

Re: BL instruction vs. basic blocks

I can't work out what you mean the BL instruction is always going to branch it will NEVER execute the next instruction (it has no condition) I also don't understand the OP's reference to 'basic blocks' or what 'side-effects' of instructions are, why they are being tracked, why they need to be known...
by BMardle
Tue Dec 03, 2019 9:09 am
Forum: Bare metal, Assembly language
Topic: BL instruction vs. basic blocks
Replies: 12
Views: 1284

Re: BL instruction vs. basic blocks

All true, LdB. I meant that sooner or later LR will be copied back to PC and then the next instruction will be executed.
Thanks for reminding me about conditional instructions, though!
by BMardle
Sun Dec 01, 2019 3:59 pm
Forum: Bare metal, Assembly language
Topic: BL instruction vs. basic blocks
Replies: 12
Views: 1284

BL instruction vs. basic blocks

Hi, all. I'm back at trying to write a compiler targetted on ARM again (for amusement/masochism). I know basic blocks usually (by definition) end with a branch/jump (or if the next instruction is a branch target), but I'm wondering whether it'd be simpler for my compiler to regard BL as a not-a-bran...
by BMardle
Wed Apr 17, 2019 2:12 pm
Forum: Troubleshooting
Topic: Environment variables vs. bash and lxterminal
Replies: 2
Views: 406

Re: Environment variables vs. bash and lxterminal

You cannot rely on access times. Many distros and images mount filesystems with the "noatime" or "relatime" options by default. Especially on an SD card, where small writes are costly, frequent access time updates could impact performance in many workloads. Thanks, jojopi. I thought it might be som...
by BMardle
Wed Apr 17, 2019 12:37 pm
Forum: Troubleshooting
Topic: Environment variables vs. bash and lxterminal
Replies: 2
Views: 406

Environment variables vs. bash and lxterminal

Hi, all. I recently tried to run 1 of my 'old' OpenGL/ES programs on my Pi 2 (Stretch). It didn't work because LD_LIBRARY_PATH wasn't set. I've put "export LD_LIBRARY_PATH=/vc/opt/lib" (or something similar!) in ~/.bash_profile. When I first log in (using the text console, not X), LD_LIBRARY_PATH is...
by BMardle
Wed Apr 03, 2019 12:18 pm
Forum: The MagPi
Topic: Help with Issue 71, 'Getting Started With Pygame Zero', pp52-57
Replies: 2
Views: 5294

Re: Help with Issue 71, 'Getting Started With Pygame Zero', pp52-57

I've largely solved the problem. It was the checks on whether the car had collided with the barriers that was the main culprit. Once I changed the code so it only checked for collisions with barriers on the screen, the frame rate at the end of the game went up from 11fps to 50fps! This makes me wond...
by BMardle
Sun Mar 31, 2019 8:07 pm
Forum: The MagPi
Topic: Help with Issue 71, 'Getting Started With Pygame Zero', pp52-57
Replies: 2
Views: 5294

Help with Issue 71, 'Getting Started With Pygame Zero', pp52-57

Hello, everyone. I've been reading the article on Pygame Zero in issue 71, which describes how to make a very simple driving game. It works fine under Windows 7, taking about 40 seconds to win a game, but on my Raspberry Pi 2 the game gets slower and slower as it runs, taking about 114 seconds to wi...
by BMardle
Thu Dec 20, 2018 11:58 am
Forum: C/C++
Topic: math problems in C
Replies: 12
Views: 4066

Re: math problems in C

Hi, Killertechno.
I expect your '200's are actually a teensy bit smaller. Casting a floating-point number to an int truncates it. Try adding 0.5 then casting.
by BMardle
Sat Aug 25, 2018 4:08 pm
Forum: Troubleshooting
Topic: lxterm unreadable after upgrading Jessie to Stretch
Replies: 1
Views: 287

Re: lxterm unreadable after upgrading Jessie to Stretch

Oh... Emacs looks the same as it did under Jessie, if that helps narrow things down.
by BMardle
Sat Aug 25, 2018 4:07 pm
Forum: Troubleshooting
Topic: lxterm unreadable after upgrading Jessie to Stretch
Replies: 1
Views: 287

lxterm unreadable after upgrading Jessie to Stretch

Hi, everyone. I recently upgrading from Jessie to Stretch on my Pi 2. Now I can't read what lxterm says. At first I thought it was displaying text in a constant grey on a white background. After zooming in, I can see that it's using lots of different shades of grey and even the occasional black pixe...
by BMardle
Fri May 11, 2018 5:16 pm
Forum: C/C++
Topic: CPU load on computer
Replies: 9
Views: 3265

Re: CPU load on computer

Very useful thread! I'm trying much the same thing (displaying processor load on an LED bargraph). At the moment I'm reading /proc/stat once a second and displaying the change in (system time + user time)/CLK_TCK. I'm not sure that's actually right... but it does seem to bear some resemblance to wha...
by BMardle
Wed Feb 28, 2018 1:15 pm
Forum: The MagPi
Topic: MagPi67: Pi in Spectrum case: diodes on 'address' lines
Replies: 9
Views: 3507

Re: MagPi67: Pi in Spectrum case: diodes on 'address' lines

The diodes are needed, as noted, if the rows are always driven high and low, are a necessity to avoid damage, and I think that's why they are there. Looking at the source code will show how the author implemented their scan routine, whether it mandates diodes or not. Indeed. My first paying job was...
by BMardle
Mon Feb 26, 2018 9:26 am
Forum: The MagPi
Topic: MagPi67: Pi in Spectrum case: diodes on 'address' lines
Replies: 9
Views: 3507

Re: MagPi67: Pi in Spectrum case: diodes on 'address' lines

Although... with the keyboard plugged in, if you press 2 keys on the same address line at the same time, that shorts together 2 of the 'data' GPIOs. So, by the same logic, you should have diodes on those lines too ;)

Go to advanced search