[Implemented] assembler forum

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
graph100
Enthusiast
Enthusiast
Posts: 115
Joined: Tue Aug 10, 2010 3:17 pm

Re: assembler forum

Post by graph100 »

I think it's a good idea. The strange things is that in the french forum, there is an ASM section :mrgreen:
Here : ASM French Forum
_________________________________________________
My Website : CeriseCode (Warning : perpetual changes & not completed ;))
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: assembler forum

Post by Shardik »

I would like it very much to have a separate Assembler subforum.
I had already seen it recently that the French forum has one and
had taken a look into it (although my French is not that good... :wink:).
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: assembler forum

Post by IdeasVacuum »

I think it is a great idea, I'm all in favour of having more forum categories in this way - it simplifies and speeds-up forum research and 'gems' are less likely to be 'lost'.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: assembler forum

Post by skywalk »

Excellent idea! I have questions already :D
I am curious about cross platform attempts when integrating ASM code.
Of course, that is what native PB syntax is for, but ...but it is interesting to see the multipliers when processors and O/S

Are polls not enabled anymore?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: assembler forum

Post by wilbert »

skywalk wrote:I am curious about cross platform attempts when integrating ASM code.
When no OS specific calls to other procedures are made within ASM code and the cpu and the calling convention are the same, code can be cross platform.
For PureBasic this means Windows, OS X (x86) and Linux 32 bit ASM can be cross platform and Linux and OS X 64 bit ASM can be cross platform if ever PureBasic will have a 64 bit OS X version. If PureBasic 64 bit for Windows and Linux can use the same calling convention, they can also be cross platform.
(if I'm correct of course :wink: )

+1 for the idea of an ASM subforum.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: assembler forum

Post by Tenaja »

+1 for adding the asm forum.

Here are my reasons:

Pb has inline asm capability for a REASON.
Gathers asm threads together so the disinterested can easily avoid them, and the interested can easily focus on them.
Asm programming within PB is still assembler, but it is not directly related to PB. However, a dedicated forum gives PB's asm coders a local place to exchange ideas without "going elsewhere."
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: assembler forum

Post by Zach »

I would like to see such a forum added, as well.

I have a lot to learn about programming, but one of the reasons I got PureBasic was because it offered this option if I ever wanted to use it.
At some point in the future I would very much like to learn ASM within the confines of PB, and maybe later in a more general sense.

But remember, this would require the ASM coders of the forum to step up and help us out, with very simple stuff as well. Sometimes that might mean a link to a good tutorial/site, and others it might mean holding hands and drilling information into peoples brains until they "get it", and having lots of redundant discussions.
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: assembler forum

Post by Seymour Clufley »

At the very least, having a special forum for ASM can't do any harm, can it? It's not as if there's a risk attached to it. If it doesn't take off the posts can be merged into the General area.

And anyway, I think it's a good idea. Like Zach, I would like to learn ASM in terms of using it in PB.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: assembler forum

Post by Thorium »

Zach wrote: At some point in the future I would very much like to learn ASM within the confines of PB, and maybe later in a more general sense.
If you can use ASM with PB, you can use it in general. ASM isnt very complex and it isnt hard to learn. The problem with ASM is, that you need to think carefully what you want to do. You must think in very small steps and keep the limitations of the CPU in your head. Writing ASM code is easy, you can learn it in a few days. But writing effective code will take some time to learn.
Zach wrote: But remember, this would require the ASM coders of the forum to step up and help us out, with very simple stuff as well. Sometimes that might mean a link to a good tutorial/site, and others it might mean holding hands and drilling information into peoples brains until they "get it"
They allready do that, if someone asks. :wink:
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: assembler forum

Post by DarkDragon »

Thorium wrote:
Zach wrote: At some point in the future I would very much like to learn ASM within the confines of PB, and maybe later in a more general sense.
If you can use ASM with PB, you can use it in general. [...]
Some people will misunderstand you now and they will try to use x86 instructions for PIC microcontrollers :lol: .
bye,
Daniel
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: assembler forum

Post by Thorium »

DarkDragon wrote:
Thorium wrote:
Zach wrote: At some point in the future I would very much like to learn ASM within the confines of PB, and maybe later in a more general sense.
If you can use ASM with PB, you can use it in general. [...]
Some people will misunderstand you now and they will try to use x86 instructions for PIC microcontrollers :lol: .
So, we do need a subforum for that people to ask why the code does not work on their PIC. ^^
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: assembler forum

Post by netmaestro »

One thing that interests me is that what can be done in nice clean assembler code in five lines can often be done in 20 very simple lines with up to 50% + gain in speed. Topics of this nature are quite interesting to discuss and there are quite some references on the net that explain the reasons behind it.

Seriously, in the day-to-day postings to the Purebasic forums, very little is said about inlined asm. If you really want to "Feel the ..PuRe.. Power", that needs to change. For certain applications, without inlined asm at the right time and place, there's a big mushy russet potato stuck in your turbo intake. Dropping to inlined asm can make a speed difference of 10x, as I recently found out. Isn't that worth talking about?
BERESHEIT
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: assembler forum

Post by djes »

Look at this code : http://purebasic.fr/english/viewtopic.p ... ead#unread
Maybe we could optimise it with asm to show how fast it can be :)
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: assembler forum

Post by moogle »

djes wrote:Look at this code : http://purebasic.fr/english/viewtopic.p ... ead#unread
Maybe we could optimise it with asm to show how fast it can be :)
Can't do it without an ASM forum :twisted:
Image
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Re: assembler forum

Post by einander »

I think it's a good idea to have a section for asm.
Post Reply