LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2018, 02:10 PM   #1
DaleMc
LQ Newbie
 
Registered: Jan 2018
Posts: 2

Rep: Reputation: Disabled
Linux and Assembly


I am a retired COBOL programmer, stuck in the Windows World. I recently decided to learn Assembly language, and I want to bypass the memory model issues by going to a 64 bit assembler. I don't yet have Linux on my computer, so I am interested in recommendations for distribution type, hopefully one with YASM included.
 
Old 01-07-2018, 02:18 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,380

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Hi DaleMc,

Welcome to LQ!

Every major Linux distro has YASM.
 
Old 01-07-2018, 04:50 PM   #3
DaleMc
LQ Newbie
 
Registered: Jan 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
SOLVED
 
Old 01-08-2018, 06:22 AM   #4
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.3 MATE
Posts: 3,798
Blog Entries: 2

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
Quote:
Originally Posted by DaleMc View Post
SOLVED
Hey DaleMc.

You can mark the thread solved through the "Thread Tools" menu at the top of the thread.
 
Old 01-08-2018, 09:29 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,812
Blog Entries: 4

Rep: Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085
As a fellow 'former COBOL-hound' (among many other things), I can tell you that "assembler" is hardly-ever used any more. You might find it in the Linux "trampoline" code, and in the /arch directory of the kernel source where it mostly consists of "C" programs with asm{...} blocks.

The very-simple state of the art right now is that microprocessors aren't designed to be programmed by hand: they're designed to accept the output of compilers. Microprocessor manufacturers work with compiler-writers – and, produce their own compilers – which will generate optimal instruction-sequences for their microprocessors, which are in turn optimized to accept them.

And, actually, this is nothing new. The IBM System/360 contained several instructions and features, such as the PACK instruction and decimal-mode, which were specifically designed for COBOL. (There is a hardware implementation of most of the PICTURE clause.) And, in turn, the IBM COBOL compiler was optimized to use these in the most commonly-executed code paths in order to beat competitors at benchmarks – such as those that, say, the US Government was running. New generations of the architecture carried this trend forward, and the COBOL compiler (along with FORTRAN) was always the most optimized, and optimizable, because these were the two that mattered most. (Kids ... koff koff ... "C" didn't even exist yet ...)

Last edited by sundialsvcs; 01-08-2018 at 09:37 AM.
 
1 members found this post helpful.
Old 01-08-2018, 11:43 AM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,757

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Assembly language still has its uses, as is explained at Wikipedia. A striking (but atypical) example is operating system KolibriOS.
 
Old 01-08-2018, 12:33 PM   #7
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Void
Posts: 206

Rep: Reputation: 61
As with COBOL, there is no reason not to use Assembler if you're sufficiently familiar with it. This is true for both Windows and other operating systems with the exception of Windows having a consistent GUI API guaranteed to be available.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ARM assembly under Linux jessCPP Programming 4 08-13-2013 01:52 AM
[SOLVED] Linux Assembly: write and receive assembly data errigour Programming 2 09-22-2012 10:54 AM
Linux Assembly Programming Dury03 Programming 3 03-07-2011 03:41 PM
Assembly on Linux asahlot Programming 2 11-12-2005 02:04 AM
Linux assembly Creep Programming 9 01-29-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration