Questions tagged [b-lang]

B was a language briefly used before the language C was designed.

B was a systems programming language developed by Ken Thompson and Dennis Ritchie at the Bell Telephone Laboratories and appeared in 1969. It is a derivative of . Like BCPL, it has only one type, machine word. It had a strong influence on .

Resources

10 questions
26
votes
2 answers

Does anyone have a working B compiler?

Does anyone know where I could get a good B compiler? I have searched for a B compiler for some time now, but have been having some difficulty finding anything complete for a Windows or Linux system. Here is an example of B: main( ) { auto a, b,…
Anthony
  • 261
  • 3
  • 3
3
votes
0 answers

Are variable declarations in inner code blocks permitted in the B programming language?

For example, is the following snippet legal in B? int main() { auto i; for (i = 0; i < 5; i++) { auto x; // Is this legal? } }
Elvir Crncevic
  • 525
  • 3
  • 17
3
votes
1 answer

Extern or extrn in B?

I have a confusion between two B keywords. The official B reference manual uses extrn keyword, while Wikipedia and C use extern. As I don't know any good B compiler for x86, I can't spellcheck using a compiler. So, what's the correct way of writing…
Triang3l
  • 1,230
  • 9
  • 29
2
votes
2 answers

Function pointers in 68k assembly for Ti-89

I have been trying to build a home-brew B cross-compiler for my Ti-89 for a few months now, and am finally at the point at which I would like to generate assembly which my calculator executes. The language is 'B' in the sense that there is only 1…
2.71828-asy
  • 171
  • 1
  • 5
1
vote
1 answer

How to resolve this reduce/reduce conflict?

I am writing a compiler for the B programming language. The grammar of this language distinguishes lvalues and rvalues syntactically. While translating the grammar into yacc syntax, I stumbled upon a reduce/reduce conflict. Here is a minimal,…
fuz
  • 88,405
  • 25
  • 200
  • 352
1
vote
0 answers

B language limits (table sizes)

The official B tutorial says that the compiler gives two letters if an error occurs. The letter combinations include: >c - case table overflow >e - expression table overflow >i - label table overflow >s - symbol table overflow Instead of using…
Triang3l
  • 1,230
  • 9
  • 29
0
votes
0 answers

Spring boot starter and redis cluster issue

I deployed a redis cluster using the bitnami/redis-cluster chart. I also set a password TEST. This created a service redis-cluster which maps to all the nodes kubectl get service NAME TYPE CLUSTER-IP EXTERNAL-IP …
user3908406
  • 1,416
  • 1
  • 18
  • 32
0
votes
0 answers

Can you run the B programming language on Linux (more specifically Raspbian)?

Recently I've been reading Brian Kernighan's book on B (https://web.archive.org/web/20150611114427/https://www.bell-labs.com/usr/dmr/www/kbman.pdf) and I was wondering if I could actually run B scripts on Linux. Are there any compilers out there?…
user13582614
-2
votes
0 answers

Power BI integration in Blazor Application: Operation returned an invalid status code 'Unauthorized''

We are Integrating Power BI into Blazor Web Application we have followed the instruction given in Microsoft Documentation We have Followed the Step 1 and Created User in Azure AD security group and Enabled the Power BI service admin settings Please…
-5
votes
1 answer

Why does C use the asterisk to reference the value of a pointer?

I find that I refer to the value at the memory location pointed to by a pointer far more often then I want to refer to the actual value of the pointer. As a result I wonder why C does not use the asterisk in the to refer to the actual value of the…
Erk
  • 41
  • 6