Questions tagged [s390x]

s390x aka z/Architecture aka ESAME is IBM's 64 bit mainframe architecture.

23 questions
4
votes
1 answer

On IBM Z (s390x) How the instruction beyond 4K (Page size) is addressed in base + offset style?

We know that every instruction is converted base + offset and the offset max size is set to 4K (4096). What if my program size is more than 4k? Line 1 : Base + 1 , Line 2 : Base + 5 , . . . ., Line x : base + 4090 How the Line x onwards is…
Jijo
  • 41
  • 2
4
votes
2 answers

z/OS Assembler program looping weirdly if output file attributes changed

OK -I'm sure I'm doing something stupid, but I can't see it. I have a small sample assembler program which I'm going to provide to a colleague who wants to learn assembler, but it has a weird bug I need to iron out first. . When the output file…
Steve Ives
  • 7,894
  • 3
  • 24
  • 55
4
votes
1 answer

MXNet parameter serialisation with numpy

I want to use a pre-trained MXNet model on s390x architecture but it doesn't seem to work. This is because the pre-trained models are in little-endian whereas s390x is big-endian. So, I'm trying to use…
Masquerade
  • 3,580
  • 5
  • 20
  • 37
3
votes
1 answer

How to execute a variable length UNPK instruction (IBM mainframe ASM) in COBOL?

I have a legacy code written in ASM that is required to convert to COBOL. The ASM code is as follows, EX R8,UNPK1 OI UNWK16+15,X'F0' UNPK1 UNPK UNWK16(16),0(0,R4) UNWK16 DC CL16' ' The register R4 stores the…
Chou Tan
  • 85
  • 6
3
votes
2 answers

Is there a way of coding IBM's BAL on ZLinux?

I am trying to learn IBM's basic assembly language and I was wondering if there was a way of assembling BAL code on a Linux guest running on a mainframe? I have nasm and as installed, but I think these are normally used for Intel processors rather…
2
votes
1 answer

Is the executable code generated by a C compiler on Z/OS executable on a an IBM z/Linux platform?

In the IBM environment a hybrid C / Assembler compiler call Metal C exists and it permits C source programs to be intermixed with Assembler source programs and compiled as an executable. My question is this, ignoring all the external linkage…
jdftwrth
  • 45
  • 5
2
votes
1 answer

GCC with -march : invalid switch

OS: Ubuntu 16.04 s390x Gcc: Build from source v7.3.0 using steps mentioned below: mkdir gcc cd gcc wget https://ftpmirror.gnu.org/gcc/gcc-7.3.0/gcc-7.3.0.tar.xz tar -xf gcc-7.3.0.tar.xz cd gcc-7.3.0 ./contrib/download_prerequisites mkdir objdir cd…
Nayana
  • 133
  • 1
  • 11
2
votes
1 answer

How to use explicit addressing in IBM (HLASM)

I’ve been looking for information about explicit addressing, online but there is nothing and there is, the explanations are pretty vague. I hope someone can explain me with details and if possible witn example. I would like to know, what registers…
2
votes
2 answers

HLASM on z/OS Issues errors about Invalid OpCode

I'm trying to add two numbers and subtract two numbers but when I compile my code it says 'invalid op-code' (I'm using assist (IBM)) MAIN CSECT USING MAIN,15 ->invalid op-code NUM1 DC F'67' ->invalid op-code NUM2…
1
vote
3 answers

Trying to use awk to parse lscpu output but can't get it right

Essentially what I want is to extract the byte size of the L3 cache from lscpu. The tricky part is that the units lscpu uses is not consistent across versions and what I need has to work with all versions (including the versions before the --bytes…
TreeWater
  • 761
  • 6
  • 13
1
vote
1 answer

Account or password is expired, reset your password and try again sudo: unable to change expired password: Authentication token manipulation error

I am creating one RHEL7.8 machine with s390x arch in Openstack using terraform and running init.sh file in user_data I got the below error log while executing any command in init.sh file. my init.sh file echo "Start executing bootstrap...\n" echo -e…
1
vote
1 answer

Installing gcc on s390x

I need a C compiler on my s390, which runs RHEL 7.6. When I do "yum list | grep gcc", I have the following: libgcc.s390x 4.8.5-36.el7 compat-gcc-44.s390x 4.4.7-8.el7 …
Christian68
  • 845
  • 4
  • 13
  • 24
1
vote
1 answer

Failure extracting files when PULLing docker image

I'm attempting to pull and run a very simple python application for tests purposes but I'm facing the following issue. The server where I created the docker image is a Linux on System Z, the same architecture and same Linux distro - SLES 12.5 of the…
1
vote
1 answer

how to print a literal value in assist/assembler

MAIN CSECT USING MAIN,15 L 6,=F'1000' XDECO 6,DISCOUNT XPRNT LINE,80 BR 14 LTORG LINE DC C'0' DISCOUNT DS 12C …
1
vote
2 answers

How to Detect a Delimiter in IBM Manframe Assembler?

Given a string of up to 256 characters, what IBM Mainframe Assembler instruction would you use to detect and point to the first occurance of a specific one-byte delimeter character within that string?
dstaudacher
  • 546
  • 3
  • 11
1
2