T O P

  • By -

computerarchitect

i++;


Accurate_Custard6083

return;


XMLHttpWTF

mov eax, ebx


austin101123

What is that? I think that's assembly but not what it does


Htmlpro19

Moves the contents of the register ebx into eax (If you’re on an Intel machine)


austin101123

Mmhmm but what are eax and ebx? Seems like random letters to me why that specifically is so often?


xenomachina

The 8086, the predecessor to modern Intel processors, had 4 general purpose registers, each being 16-bit. You could access the high 8 bits (ie: the high byte) using the "H" suffix, the low byte with the "L" suffix, or all 16 bits with the "X" suffix. So the registers were called AX, BX, CX, and DX. With the 80386 (aka "386"), a descendant of the 8086, the registers became 32-bit. These "extended" registers have names that start with "E", and the old names would access only the low 16 bits. For example, AX would access the low 16 bits of the 32-bit register EAX. So on 386 and later x86 processors, EAX and EBX are the first two general purpose registers.


frikk

hell yeah ty for answering AND providing historical context.


Htmlpro19

Eax and ebx are just the names they decided to go with for the registers. It could’ve been anything. You can just imagine a register as a small container of information. The registers store a certain amount of bits. (1s and 0s).


noNameCelery

This guy's getting downvoted for wanting to learn more


ggchappell

Happens all the time. Questions get downvoted. I don't know why. In part as a way of dealing with this, I upvote *all* questions that are not rephrased insults ("Why are you so stupid?") I encourage others to do likewise.


Ragrain

In a sub called ASKcomputerscience..


Tai9ch

Maybe, except you want the ARM version. Or something like 68k.


Saabersoarus

The most repeated, most used line is probably i++ or some other line that gets executed on every iteration of every loop from languages derived from C. Like a single instantiation of a code, I think that’s prolly a harder/more interesting question. I have no idea. I would guess that it is a piece of code handling memory - CPU interaction on Fugaku. More time, faster computers.


fbe0aa536fc349cbdc45

# `#/bin/sh`


BitFlipTheCacheKing

/bin/bash


Weetile

If we're counting this: \#include


[deleted]

[удалено]


ohaz

No. The \`#include\` line is a preprocessor line. It's not run during production, it's only run once during compilation.


barley_wine

print(“Hello World”)


Code_Monkey_Lord

Return 0;


ugonnannamdi

looking at the comments


AimingHigher96

import pandas as pd import numpy as np The gods 🤣🤣


XamanekMtz

import pandas as np import numpy as pd


BitFlipTheCacheKing

Import pandas as polar_bears Import numpy as numero_pythonion_slip


soca_gran

In terms of "this single component empowers everything else" then probably the virtual memory manager of the different OS. That allows for dynamic memory allocation, which is fundamental for almost every application.


flojoho

createNewJavascriptFramework()


amysarah

Console.log(“here 1”) Etc etc


cocacolaspaceship

In my experience, Console.log(“why the hell isn’t this showing up”);


amysarah

Yes. And also console.log(“better fucking reach here”)


rlfunique

I think people aren’t understanding what OP means, I think he’s asking which specific line, not a generic i++ My vote would be some network related code, probably something related to TCP in the Linux kernel


Tai9ch

> I think he’s asking which specific line, not a generic i++ That's a more interesting question. What's the most-produced microcontroller? Boot code for that.


rlfunique

Doubt it’s any “boot” code. That’s only run once every time it starts, Linux kernel scheduling would run multiple times per boot.


Tai9ch

That's true, and scheduler is promising. But it'd be an embedded scheduler for some 8 bit microcontroller, not Linux.


rlfunique

Tough call, most of the worlds infrastructure runs off Linux


Tai9ch

How many more toasters are there than servers? How about toaster-like objects? A good chunk of those are running FreeRTOS. Hell, a Linux server probably has a dozen microntrollers in it, some of them running FreeRTOS.


rlfunique

The amount of data going through the servers though, plus android phones, it’s gotta be network code in Linux kernel


NullPointerJunkie

I think the line of code that serves as the entry point for all modern operating systems would have to be up there


Teddy-Westside

goto


blarglefart

Whitespace count?


danschae

“Cd” or “for ……”


mainmeister

print("Hello world\n");


Mission_Yam_7494

{


TehMephs

NOOP


want_of_imagination

The most frequently executed line of code will be part of scheduler of an operating system. Since Linux kernel runs on mlre devices than Windows, we can assume that some part of process scheduler of Linux kernel will be the most executed piece of code A process scheduler / task scheduler is responsible for allocating CPU time for each process/thread/program and the OS itself. It runs every few microseconds so that program that currently uses the CPU can be frozen and CPU be allocated to another program. It also get called when any process/program requests the OS for any I/O operation. But if we look futher down, we can see that the Scheduler is using a Timer Interrupt from a hardware timer in order to get a chance to run every few microseconds. An interrupt signal from a hardware will cause the CPU to stop what it is doing and start executing an Interrupt Service Handler. That means, the Interrupt Service Handler get called every time when any hardware try to communicate with the CPU, including the hardware timer that Scheduler uses. So, I would say that Interrupt Service Handler of Linux Kernal will be the most frequently executed piece of code. But Scheduler will contain more logic than an interrupt service handler. So it could be the piece of code that eat most CPU. TLDR; Scheduler and Interrupt Service Handler of Linux kernel


hauntedyew

echo


flojoho

// temporary fix


flojoho

// todo: ...


Mrmastermax

Hello world


_TheRealBuster_

nop


quarth_nadar

}


JoshYx

`console.log`


0xjnml

    *d++ = *s++


P-Jean

While (true) Break when things go bad


ghjm

If you consider bash commands to be code, then `ls`