Go to advanced search

by AMcS
Sat Apr 13, 2013 1:58 pm
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

I did the same with the BBC BASIC assembler version - that took a bit more fudging, to get the count returned, but I don't think it's changed anything material . A% = 0: Loops% = 1: Total% = 0 B% = 1:C% = 2:D% = 3:E% = 25 PRINT "Starting ..." FOR I% = 1 TO Loops% startTime% = TIME REM CALL code% co...
by AMcS
Sat Apr 13, 2013 10:24 am
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

So I'm probably wrong in what I'm about to say but .... I took the RISC OS BASIC version from above, and added a couple of lines to count and print the number of times the function was called. <snip> The answer was 33554431 - no surprises here Agreed, the count should be 2^n - 1 (where n is the num...
by AMcS
Fri Apr 12, 2013 9:40 pm
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

mmm interesting windows results. Always figured .Net was a lash up. Have you tried the same using VB6 as this compiles down to machine code (not pseudo-code as per anything .Net based, hence the interesting results as both vb.net and c#.net should compile to the same pseudo code). I would have orig...
by AMcS
Fri Apr 12, 2013 8:14 pm
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

My figures weren't with optimisation turned on. If I ask VC++ to optimise for speed, the time comes down to 0.36 cs! A bigger difference than you would expect optimisation to make. There's a lesson there, I'm sure... FWIW, the I5 is clocked at 2.67GHz. It is surprising though what a difference asse...
by AMcS
Thu Apr 11, 2013 8:58 pm
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

sej7278 wrote: some details here about building for armv7 even.
Thanks for the link Sej !
by AMcS
Thu Apr 11, 2013 1:39 am
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

(Acorn C) in its day it was the de-facto, but its not been updated in at least 7 years (even then it was based on ANSI C circa 1990, with some C99 support) and just won't compile anything that uses gnu libraries. for simple maths like this or riscos-specific code it would almost definitely be faste...
by AMcS
Wed Apr 10, 2013 8:48 pm
Forum: RISCOS
Topic: Trying to get an algorithm to run faster on RISC than wheezy
Replies: 71
Views: 11358

Re: Trying to get an algorithm to run faster on RISC than wh

One more question. In "Tasks" you can adjust the amount of memory in NEXT. What exactly does this do? It sets the amount of memory available for the Next application/Task you start. Some applications need more than the usual default amount (if so they may complain) you can then "increase" the Next ...
by AMcS
Tue Apr 02, 2013 9:49 pm
Forum: RISCOS
Topic: The Acorn Copy key: to which key is it mapped?
Replies: 3
Views: 1594

Re: The Acorn Copy key: to which key is it mapped?

Witzo wrote:That's what I was looking for, thanks!
The 'end' key on the Mac is the one that has an arrow pointing to the lower right.

My Basic editing has become noticeably faster. :)
No problem - pleased to help !
by AMcS
Mon Apr 01, 2013 10:10 pm
Forum: RISCOS
Topic: The Acorn Copy key: to which key is it mapped?
Replies: 3
Views: 1594

Re: The Acorn Copy key: to which key is it mapped?

Reading the BBC Basic VI manual, I come across an explanation to edit a line of basic code. It requires the Copy key. Where is it mapped on everyday PC/Mac keyboards? I'd like to change a line without needing to type it all over. Of course I can do this in StrongED, but then I can't use the full 'M...
by AMcS
Mon Apr 01, 2013 8:34 pm
Forum: RISCOS
Topic: STICKY: New to RISC OS? Read this!
Replies: 83
Views: 199209

Re: New to RISC OS? Read this!

I'm subverted already. Whats new in the 19th March image? Does it have improved USB drivers? I think there we're just two changes (aimed at addressing issues in the earlier RC7 release). I don't think there's any update to the USB yet. Details of the changes are given in: http://www.riscosopen.org/...
by AMcS
Sun Mar 24, 2013 3:22 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

While at a certain level home automation needs good timing, this tends to be handled by PICs I am just wondering why? If a reading every second (or so) is acceptable - why is it necessary to use PICs at all? Just attach the sensors via a simple interface to Pi (I2C or whatever) and use Linux to rea...
by AMcS
Sat Mar 23, 2013 1:58 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

Does home/building automation require accurate timing, such as latencies below 1ms? And if it does, is RISC OS actually much better? Probably not, but some sensors your system may be attached to it might (referred to by PeterT). The Linux path would probably involve using a PIC for those portions (...
by AMcS
Sat Mar 23, 2013 1:43 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

I understand that RISC OS allows a process to take full control of the machine, and even disable interrupts, whereas a Linux process with real time scheduling priority can only avoid preemption for a limited period, and interrupts can only be disabled in a kernel module. But in practice how long ca...
by AMcS
Thu Mar 21, 2013 10:48 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

Is it a problem if a task locks up the system? What do you do if that happens? Wrong question. Make sure no task is running that locks up anything. For a dedicated system like a home automation system that might well be achievable (it's an automation system - not something likely to be running a my...
by AMcS
Wed Mar 20, 2013 11:10 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

i will probably give some time to looking into it can u recommend any good RISC OS guides / forum thread's / blogs for the uninitiated Sorry for not getting back sooner duberry, there are a few sources of information: RISC OS Open have a site that includes general information, discussion forums and...
by AMcS
Wed Mar 20, 2013 10:31 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

duberry wrote:
AMcS wrote: Ok, Linux doesn't boot as fast as RISC OS
this depends what Linux distro you are booting , IMHO
and even then how that distro is configured to start .. (you can change the default seting's!!!)
And RISC OS has default settings that can be changed too ! :D
by AMcS
Wed Mar 20, 2013 9:43 am
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

Another thing, but tightly connected, would be durability. How can I prevent Linux from writing to flash except when ordered to do so? How many years will an SD card last under Linux, and how many years will it last under any OS that's more conservative to the card? You're misattributing that quote...
by AMcS
Wed Mar 20, 2013 8:41 am
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

The only valid concern I'd concede regarding Linux in home automation would be connected with unexpected power failures, if the power goes how tolerant of that is Linux? Wouldn't this alone be a real show stopper to you? It would be a serious concern alright. I think everything works if you're just...
by AMcS
Tue Mar 19, 2013 11:06 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

Only minor quibble I'd have would be over their comments on OS "Freedom" where RISC OS 6 is mentioned for some reason and I believe people unfamiliar with RISC OS versioning might get confused. I think this is what has happened to the Linux Format staff too--after all forks in 'commercial' software...
by AMcS
Tue Mar 19, 2013 10:53 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

Re: RISC OS included in OS types reviewed in Linux Format

Why wouldn't you use Linux for home automation? (Serious question, as I want to do some, and I am familiar with Linux, but not with RISC OS). It's not a real-time OS, doesn't boot fast and might need terminal based service when just switched off. Personally, I'd want just the opposite. Ok, Linux do...
by AMcS
Mon Mar 18, 2013 11:49 pm
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5457

Re: Interrupt servicing via BASIC ?

Sorry Markodius, I don't follow - which is "too messy to be viable in industry or commerce"? Is it specifically related to RFID - or just RISC OS hardware access in general ? More related to me really AMcS. Dropping to assembler always was 'last resort' to me - in fact these days I doubt that I cou...
by AMcS
Mon Mar 18, 2013 8:06 pm
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5457

Re: Interrupt servicing via BASIC ?

Thanks Theom for meeting me at the shallow end of the pool. What I was principally attempting was to expose any progressable avenue that might prove useful to heuristicjohn and might otherwise have been overlooked - as well as clear up any misconceptions on my part concerning the way RISCOS deals w...
by AMcS
Mon Mar 18, 2013 7:54 pm
Forum: RISCOS
Topic: RISC OS included in OS types reviewed in Linux Format
Replies: 35
Views: 7420

RISC OS included in OS types reviewed in Linux Format

RISC OS gets an honourable mention in an (overall) fair review in the current issue of Linux Format magazine (issue 169). They rate it as 2nd (after Raspbian which given that that is the official Raspberry Pi OS is probably fair enough) and give RO a 4 out of 5 star (which isn't bad, isn't bad at al...
by AMcS
Sun Mar 17, 2013 9:29 am
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5457

Re: Interrupt servicing via BASIC ?

Theo thanks for the comprehensive description (I had a sneaking suspicion the HAL would figure in it !).
by AMcS
Sat Mar 16, 2013 9:33 pm
Forum: RISCOS
Topic: Solved the "'the disk drive is empty' - CANCEL/RETRY" error
Replies: 10
Views: 4617

Re: Solved the "'the disk drive is empty' - CANCEL/RETRY" er

What I think about? Impatient user would bridge the pressure switch because he would see in this something what brings only problems. Who really needs hot-swap feature on RasPi system disk? It only brings a problem if there's a defect with the switch I would have thought or if the card hasn't been ...

Go to advanced search