__Assemblers are for hiding your work , not for faster code .
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
__Assemblers are for hiding your work , not for faster code .         


Author: werty
Date: Jan 5, 2007 18:21

Everyone who uses assembly wants to put opcodes together to make

more powerful Macros or Primatives , but if they do , you'd see that

pattern everywhere , makes hacking faster , C++ has the same

advantage , but by bloating . You see C++ pattern , but its 2
megabytes !!

Forth did the opposite , you can create primatives of a few
opcodes in minutes and and "leverage" your code .
You can code asmbler and dictionary in hours .....

Leveraging nix's all the low level , messy opcode details .

If i code a [ Cmp ...Branch= ] many times , why not make it
a
primative .

Now it looks =? When i type it , it asks for a symbolic
address .

Thats power ! Now create 100 of these and you are assembling
code , but from a "high" level !!
A high level assembler ! That will confuse I.T. dept !!
Show full article (1.39Kb)
10 Comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: Tarkin
Date: Jan 6, 2007 15:14

werty wrote:
> Everyone who uses assembly wants to put opcodes together to make
>
> more powerful Macros or Primatives , but if they do , you'd see that
>
> pattern everywhere , makes hacking faster , C++ has the same
>
> advantage , but by bloating . You see C++ pattern , but its 2
> megabytes !!
>
>
> Forth did the opposite , you can create primatives of a few
> opcodes in minutes and and "leverage" your code .
> You can code asmbler and dictionary in hours .....
>
> Leveraging nix's all the low level , messy opcode details .
>
> If i code a [ Cmp ...Branch= ] many times , why not make it
> a
> primative . ...
Show full article (4.38Kb)
3 Comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: werty
Date: Jan 8, 2007 12:22

Mr Turnkey :

Why do difficult ? Simply make new , and easier , then use it

to make fun of others , and boot them out of their jobs

as English teachers and programmers and politicians ......

Mrs Liz :
Sorry Liz , you gotta find another job , cause theres no $$ in
explaining how difficult Swift Forth is ....

_______________________________________________________________

Tarkin wrote:
> werty wrote:
>> Everyone who uses assembly wants to put opcodes together to make
>>
>> more powerful Macros or Primatives , but if they do , you'd see that
>>
>> pattern everywhere...
Show full article (5.08Kb)
4 Comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: Tarkin
Date: Jan 12, 2007 22:02

werty wrote:
> Tarkin wrote:
> . You failed to try and correlate the
> image to a cycloptic klansman.
> -------------------------
>
>
> I failed "your" test ?
>
> Hello , hello , earth calling Turkey .
>
> What about the proper , productive context....
> , clearly established ?
>
> Or maybe you forgot it ...
>
> It was to help humans use computers , to get more
>
> work from the computer , so human can work less ...
> ...
Show full article (3.38Kb)
no comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: pablo reda
Date: Jan 11, 2007 03:48

@werty:
very good posts !!

one question:
How you can resolve the jump address in conditionals and branchs ?
I need calculate the distance or the absolute adress for every jump
(conditional or not), if I assembler the code for copy the asm-code,
what's hapen when I need make a label-jump (how avoid this ?), or only
indirect jumps ?

The calc is done with indirect address too ?

I have a blog and I wish traslate you afirmation to spanish,
you are in agreement ?
3 Comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: werty
Date: Jan 11, 2007 09:05

de acuerdo ... Traducir ..BLOG

The text book method is to study and create a fancy algorithm
, to create assembler , that resolves addresses for JUMPs .
Next tempting method is to study /copy others , so
you surf WEB looking for code clips from C++ or ....

But thats text book method . It dont work .

Use Forth at low level to charaterize OpCodes , then
simply allow Forth to "figure" and condense all those
BX BLX BNE branches .

Forth can find and figure that ARM uses the first 4 bits for cc
and Thumb-S uses other bits . So you write general purpose
code characterizing routines , in Mid-Level Forth to do all
the work for you .
It creates your assembler for you , you dont even need
to figure where the Rn and Rm and Rd are !!
You can use iterative methods , like guess at where
the bit fields are and run your OpCode test Mid-Level
to test 2 Jumps , then take the difference in address
ranges , then you know that PC is at -8 words !!
Show full article (1.29Kb)
2 Comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: werty
Date: Jan 11, 2007 09:08

Tarkin wrote:
> *
> ***
> *****
> *** ***
> *** ***
> ************
> ************
> *** ***
> *** ***
>
> Is it a house? A cycloptic klan member?
> An A? Isn't just easier to display: A
> Look I just leveraged ASCII [1] !!!
> Tarkin

-----------------------------------------------------------------

You see a KKK in that text ?

I see you have a problem with productivity .....

Maybe you will be unemployed soon ...
2 Comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: pablo reda
Date: Jan 11, 2007 10:20

werty ha escrito:
> de acuerdo ... Traducir ..BLOG
>

thanks ( gracias )
File/Folders question are the first !!!
1 Comment
Re: __Assemblers are for hiding your work , not for faster code .         


Author: werty
Date: Jan 12, 2007 00:38

> File/Folders question are the first !!!
------------------------------------------------------

Files can be modernized to be transparent to the PC user .

First , all objects are placed in a Dictionary ( like a Forth Dict')
Then kernel adds typing and its own tags and descriptions
and pointers to the header in the file/object .
I.E. Text files/objects are analysed , compressed and linked .
It is now impossible to have duplicate text files .

Kernel starts with the most common text searches and
creates pointers/ links the other files based on these common words ,
phrases and sentences .

You must have a Forth OpSys to test your ideas , because
it runs your code , instantly , so you can learn
OJT , hands on .

You cant learn with C/C++ , the delay is too great .
I.D.E.s flood you with reading/learning .

Only Forth can get you to work in minutes ..

No user input , the OpSys
Show full article (1.00Kb)
no comments
Re: __Assemblers are for hiding your work , not for faster code .         


Author: Tarkin
Date: Jan 12, 2007 16:50

werty wrote:
> Tarkin wrote:
>> *
>> ***
>> *****
>> *** ***
>> *** ***
>> ************
>> ************
>> *** ***
>> *** ***
>>
>> Is it a house? A cycloptic klan member?
>> An A? Isn't just easier to display: A
>> Look I just leveraged ASCII [1] !!!
>> Tarkin
>
>
>
> ----------------------------------------------------------------- ...
Show full article (1.20Kb)
1 Comment
1 2